SharpDevelop and can not open input file "input file 'kernel32.lib' (LNK1181)" - c#

I am having tough time getting work with SharpDevelop. I downloaded SharpDevelop 4.0.0 on WindowsXP Service Pack 3.
I created a plain solution for WebDriver to have my hands on C# binding of WebDriver. When ever I build the solution I encounter following exception -
"cannot open input file 'kernel32.lib' (LNK1181)"
I found following post which details same problem -
http://blogs.msdn.com/b/saurabh_singh/archive/2009/01/30/getting-fatal-error-lnk1181-cannot-open-input-file-kernel32-lib.aspx
And found that I indeed have entry "C:\Program Files\Microsoft SDKs\Windows\v7.1\" for "installationFolder"
Is any one else also encountered this issue?

Related

React Native run-windows error microsoft.ui.xaml.winmd not found

midlrt : error MIDL1001: [msg]cannot open input file [context]Error opening or processing WinMD d:\Desktop\projects\plenusbusiness\windows\packages\microsoft.ui.xaml.2.3.191129002\lib\uap10.0\microsoft.ui.xaml.winm
d. HRESULT 0x80070003. [D:\Desktop\projects\Example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj]
D:\Desktop\projects\Example\node_modules\react-native-windows\ReactUWP\Views\cppwinrt\AccessibilityAction.idl(1): error MIDL5157: [msg]An invalid winmd file was specified for import [context]: D:\Desktop\projects\Example\windows\packages\Microsoft.UI.Xaml.2.3.191129002\lib\uap10.0\Microsoft.UI.Xaml.winmd [D:\Desktop\projects\Example\node_modules\react-native-windows\Microsoft.ReactNative\Microsof
t.ReactNative.vcxproj]
You should be able to fix the error by removing any spaces and special characters from your project's path and I think after this you have to use npm install again before building the project. This solution worked for me.
The solution for me was to open VS 2019 using the sln inside the /windows folder and rebuild the the project. After that the command "npx react-native run-windows" worked as expected

Monodevelop won't Run any project

Hey,
I was using Monodevelop for some time(~4 months) and everything was perfect until this week.
Now whenever I try to Run a console project I get this error: /usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB3021: Unable to copy file "obj/x86/Release/AppName.exe" to "bin/Release/AppName.exe". Access to the path is denied. (MSB3021) (AppName).
The strange thing is that when I go to the folder bin/Release I DO find the AppName.exe. so I used manually mono AppName.exe to run the app.
An other problem is that in Godot mono I have the same error :/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(4215,5): error MSB3021: Unable to copy file ".mono/temp/obj/Tools/GodotTestAA.dll" to ".mono/temp/bin/Tools/GodotTestAA.dll". Access to the path is denied. when I try to run a scene, so I can't even try my game.
I thought that the problem is from my installation of mono or monodevelop so I completely purged both of them and reinstalled them again, but nothing.
I also tried to run Godot mono as root(as root not with administrative rights), it worked but I know that it isn't good to run apps as root so I decided to look for another solution in the monodevelop forums, godot forums and here, but the only thing that I found is: Unable to copy file, Access to the path is denied but the post was 8 years old and any of the solution worked
Note: I am on Ubuntu(PopOS exactly).
I will really appreciate your help ;)
After I did some more research and tests I found that the problem is from my drive file format, mono(for some reasons) is not compatible with exfat file format.
So to fix the problem you will have to move your project to an ext drive.

MSB4018: The "GetFrameworkPath" task failed unexpectedly [duplicate]

I've upgraded my TDS to 5.5 and now I get the following error when opening a solution containing a TDS project with Visual Studio:
TDS failed to change configurations with the error 'Build of GetFrameworkPaths failed.'.
Please see the output window for more details.
This is a known issue not yet fixed by Hedgehog. They do provide a workaround:
http://www.hhogdev.com/blog/2016/may/common-problem-after-tds-5,-d-,5-upgrade.aspx
To save some time you can just delete the
C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets
file and run the TDS installer and choose repair instead of uninstalling and reinstalling TDS as Hedgehog recommends.
This error can also appear when running into code / build issues. I saw this error when there was a line ending issue which resulted in a syntax error in my code generation output (eg. Models.cs).
Try these:
Restart Visual Studio and/or your PC.
Unload and reload the TDS project(s) with dependencies.
Restore NuGet packages.
Check your TDS logs / outputs as there may be a more specific error that precedes this one.
Inspect your code for any syntax errors / line ending issues.
Inspect your code for any rule / code quality violations.
Verify that your other projects can build successfully.

'csc' command is not working

To run a simple program I was using 'csc' in command prompt and it was working fine. Please advice on below both issues
a) But after installing IIS in my laptop now it is not working.
b) And even if I try with Visual Studio Development Server for a web application it is showing error 500. Don't know if both issues are inter-related.
Below are the few steps which I did:
Installation of IIS
c:\Windows\Microsoft .Net\v4.0\csc.exe, which showing below error::
Warning: No source file specified
error CS1562: Outputs without source must have the /out option specified
Thanks!
csc need something to go on as can be seen from the information that microsoft privides on the usage of csc:
https://msdn.microsoft.com/en-us/library/78f4aasd.aspx
So it is still working fine you need to feed the compiler with input. It needs your cs files as input and perhaps even some other parameters to specify the output filename and such.
csc File.cs : compiles the File.cs source file and creates a File.exe

NAnt stops working when I try to run it

I am trying to convert my nunit xml tests to html but I cannot get NAnt running
When I try to launch NAnt manually I get this right away followed by a Nant stopped working pop up:
The First Type of permission failed was: System.Security.Permissions.FileIOPermission
Unhandled Exception: System.Reflection.TargetInvocationException
I get a similar result when I try to start it's proccess in c# which I need to do in the end.
I made a build file from this website and I also tried their steps manually: http://ajeeshvl.wordpress.com/2010/11/16/converting-nunit-xml-test-result-to-html-formatc-seleniumrc-nunit-framework/
I tried moving the build file to the same folder as NAnt.exe and in the downloaded nunit2report file but that didnt make it work either.
It's very confusing to use NAnt and I still can not find Nunit2Report console exe(if there is one) and I've been trying to find clearer steps online.
My NAnt version is 0.92
And I am using Windows 8 as my OS
Thank you
Can you right click on the downloaded zip file for NAnt and unblock it. Then extract it and try. This was the issue I got on Windows 7.
Nunit2Report console exe is a part of nantcontrib. You will have to download it.
http://nantcontrib.sourceforge.net/

Categories

Resources