I got a program made in Visual Studio 2013 (C#). I want to build it to XP. If I take the exe in the Debug directory and I run it on XP, I have an error "Is not a valid win32 application". What I have to do to build it for XP?
I got the solution: You got to right-click in the solution name on the Solution Explorer and go to Properties. In there, you can not only change the platform (x64 or x86) but the .NET Framework. I downgraded to .Net Framework 4 and worked perfectly!
Related
Any standalone executable that was created by me in Visual Studio 2008 C# in the past won't run, either release or debug, in W10 build 10586. Creating a new executable shows the same symptoms. However, executing the debug in the IDE works fine. VS 2008 has the latest Service Pack. Everything worked in W10 build 10240. Can someone confirm this?
I was Avast. Disabled the shields and it works.
When I add new WebForm to my project, I get the following error:
Could not load file or assembly
'Microsoft.VisualStudio.JSLS,Version=14.0.0.0 , Culture=neutral ,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.the system
can not find the file specified.
I tried to create new website project and I tried to reinstall VS 2015 but this did not help.
This is a known bug with Visual Studio 2015. The officially-endorsed solution from Microsoft has been posted on MSDN:
If the “Tools for Universal Windows Apps Development” are still installed:
Go to Programs and Features, select Visual Studio 2105, click Change.
In Visual Studio setup, click Modify.
Deselect the feature “Tools for Universal Windows App Development”
Select “Tools for Universal Windows App Development” again, and click Update.
If you have already uninstalled the “Tools for Universal Windows Apps Development”:
Reinstall “Tools for Universal Windows App Development”
Or take the following steps to reinstall the JavaScript project system and language service:
a. Download the installer for your edition of Visual Studio, e.g.,
vs_community.exe.
b. Open a CMD window, and run the following command:
vs_community.exe /modify /installselectableitems JavaScript_Hidden
/passive
A temporary solution:
Shut down Visual Studio and reinstall the following package from the DVD or ISO:
x:\packages\JavaScript_LanguageService\JavaScript_LanguageService.msi
A better solution, endorsed by Microsoft, has been posted.
Remove the update received for visual studio TypeScript on 11/08/2015. it seems to be buggy. After removing TypeScript update, my VS is working fine ;-)
and if you try to reinstall x:\packages\JavaScript_LanguageService\JavaScript_LanguageService.msi from the installation package, soon or later you will face one more problem that "Something went wrong.. may be because of a extension.."
Easiest way is to remove TypeScript update for now. TypeScript future update may fix the problem.
OR
Run command prompt as administrator.
CD C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
devenv /updateconfiguration
devenv /clearcache
I have followed 2 tutorials like this to integrate mono 2.10.8 profile in visual studio 2010
After doing all, when selecting mono profile I get some issues:
if I change the to .net 2 framework, I have no problems:
I Copied the contents of C:\Program Files\Mono-2.10.8\lib\mono\4.0 to
C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Mono.
Created the folder RedistList and added FrameworkList.xml
Added the key to registry....
Also tried to create a .net 4 project and then select mono 2.8 profile as suggested, but have the same errors.
What am I missing?
Chek this page,
Installing Mono Tools for Visual Studio
Requirements:
Windows XP, Vista, or 7, 32 or 64 bits
Visual Studio
2008 SP1 Standard or Professional, or
2010 Professional, Premium, or Ultimate
The project worked fine in Visual Studio 2010, and we upgraded to Visual Studio 2012; however, now it does not compile.
We get the following error:
Error 2 Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed PROJECT_NAME
Does anyone how to solve this issue?
I am on Windows 2008 R2 SP1 with .NET 4.5 installed. I did not install .NET 4 directly, I used the .NET 4.5 installer.
I fixed this by installing "Windows Software Development Kit (SDK) for Windows 8" from http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx
I was confused by the title - I'm on Windows 7 - but it worked.
Solution pointed by Mark Rainey worked for us:
http://www.markrainey.me/2013/02/setting-up-build-machine.html
Changing sdk version
Go to "Microsoft Windows SDK v7.1" from the Start menu
Select "Windows SDK 7.1 Command Prompt" and enter
> cd Setup
> WindowsSdkVer -version:v7.1
My issue was when clicking on Properties on the solution for the Active(Debug) configuration, the configuration for my projects were set to Release. Changed it to Debug, rebuilt and the build error disappeared.
After 2013 now msbuild is part of VS.
https://blogs.msdn.microsoft.com/visualstudio/2013/07/24/msbuild-is-now-part-of-visual-studio/
On my case I had to change the msbuild path after I installed VS2015 to
C:\Program Files (x86)\MSBuild\14.0\Bin\
"I fixed this by installing "Windows Software Development Kit (SDK) for Windows 8" from http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx"
This solution by user489998 worked fine on Windows server 2008 R2 as well.
Visual Studio registry capture utility has stopped working.... http://easycaptures.com/fs/uploaded/256/9376236710.png
Windows 7 Shows build error like below everytime I compile my project.
From Microsoft Connect:
Locate regcap.exe here: C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Deployment
Right click and select properties.
Select Compatibility tab
Check box to Run this program in compatibility mode.
Select Windows Vista SP2 in the OS drop-down and Run as Administrator.
Click Ok and Recompile.
This solution also works on Windows 7 with Visual Studio 2008 (32 bit version), where in the 5th step, you just need to select the check box in the last group box "Privilege Level" for "Run this program as an administrator"
Another reason From Add-In-Express:
Long paths (a buffer overflow?). This was my case: I had *.tlb in a setup project with a long path, I excluded it and it compiled ok.
I ran into this build an MSI project using VS 2008 on Windows 7 64 bit. The problem was that an assembly that reference Microsoft.InteropFormTools.tlb and had to be callable from VB 6 through COM. Visual Studio defaulted the type library's Registry property to vsdrfCOMSelfReg. Changing it to vsdrfDoNotRegister solved the problem.
TIP: Pay attention to the Output window during the Build/Rebuild processing. I saw the following warning after I closed RegCap program:
Note: Unable to create registration information for file named 'Microsoft.InteropFormTools.tlb'
In case anyone is running into this issue with Visual Studio 2015, the path for regcap is now C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\VSI\bin.
I also encountered this error when I tried to add a class to my project that had previously been compiled as an external DLL that was added as a reference. I added the class to the project, but forgot to remove the reference to the DLL. Removing the reference to the external component resolved the problem and this error message no longer occurred.
If your project doesn't require to build in 64bit , you can build it in 32 bit instead.
This works in my case. I build my project VS 2008 and Windows 7-64 bit and have the same error message. I then try to build again in 32-bit and run Visual Studio in Compatibility mode and it works.
Run Visual Studio in Compatibility mode for Windows XP:
Right click Visual studio icon
Select Properties
In Compatibility tab, check on Run this program in compatibility mode for Windows
XP SP3 and check on Run this program as administrator
Go to Configuration manager and Debug your project in X86 mode