How to build a VC++ solution from the command line with Visual C++ 2012 Express ?
Open a "Developer Command Prompt for VS2012", located in the "Microsoft Visual Studio 2012 --> Visual Studio Tools" in "All Programs".
Type msbuild /help to have documentation.
Example:
cd to your solution folder.
type MSBuild MyApp.sln /t:Rebuild /p:Configuration=Release /p:Platform=Win32
Related
I'm trying to build a program using Visual Studio 2012. It's platform toolset property was set to 'v110_xp' but I changed it to 'v110'
Now I'm getting the error:
Error 2 error MSB8020: The builds tools for v110_xp (Platform Toolset = 'v110_xp') cannot be found. To build using the v110_xp build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v110_xp to build using the v110_xp build tools. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets 44
I already updated the VC++ Project and I also changed the platform toolset property to Visual Studio 2012 (v110) (it was originally set to v110_xp)
I also opened the .vcxproj file in another editor and manually changed it to use v110.
Does anybody know how to fix this error?
I updated Visual Studio 2012 to Update 4 and that seems to fix it.
I have Microsoft Visual C++ 2012 redistributable installed on my PC, but when I try to use the NMAKE command in the cmd it says:
'nmake' is not recognized as an internal or external command,
operable program or batch file.
I went to the Visual Studio 8 folder, and I couldn't find nmake.exe or vcvars32.bat.
What should I do?
"Microsoft Visual C++ 2012 redistributable" just contains runtime libraries needed by applications developed with Visual C++ 2012. No development tools are included.
To obtain "nmake" you either have to buy "Visual Studio" or download the Windows SDK from Microsoft. When installing the SDK you'll find "nmake" in folder "\Program Files (x86)\Microsoft Visual Studio xx.x\VC\bin" (xx.x depending on SDK Version).
Visual Studio installs a couple of command-shell links under Start|Programs|Microsoft Visual Studio xx.
How can i execute the .exe file in the Visual Studio 2012 command prompt. I am using the Visual Studio express edition
How it is possible?
Regards,
Prasad
I am trying to do some perf. analysis on a piece of code that is dog slow... I start VS2012 Premium as Admin, load my solution and the go to 'Analyze - Launch Performance Wizard' Immediately I am shown a dialog that says:
Could not load file or assembly 'VSPerfReader.DLL' or one of its dependencies.
Awesome! The file is located here:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Performance Tools
I can start Windows Performance Analyzer (standalone) from 'start' just fine btw.
Had the same issue, adding the following line to my system path variable and restarting visual studio did the trick.
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Performance Tools
Credit to Ade Miller in the comment for the solution.
Same instructions as Ryan Taylor above but with a visual. My issue was with Visual Studio 2013 (after installing VS2015 SP1). The value I entered the new path variable is below.
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools
Can anybody tell me how to use partcover in Cruise control .net along with mstest,
I have done that but i am getting an error
errorMSB3073: The command "C:\Program Files\PartCover\PartCover .NET 4.0\PartCover.exe --target=${nunitExePath} --target-work-dir=D:\Demo_Project\ --target-args=D:\DEMO\TestProject\bin\Debug\TestProject.dll --include=[LaTrompa]* --output=${partCoverReportPath}\${projectTests}-Results.xml" exited with code 9009.
I have used following command in msbuild
<PropertyGroup>
<partCoverReportPath>D:\BuildReports\PartCover\</partCoverReportPath>
<nunitExePath>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe</nunitExePath>
-->
Use Following command
C:\Program Files\PartCover\PartCover .NET 4.0\PartCover.exe" --target "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe" --include [TestProjectName]* --include [More if u have]* --target-args "/noisolation /testcontainer:path\TestProjectName.dll" --target-work-dir "Working dir of project" --output "output pathr\partcover.xml