devenv

Build project using devenv.exe in TFS 15RC1 Build Server

大兔子大兔子 提交于 2021-01-29 03:14:31
问题 I have a trouble with understanding how to use devenv.exe from TFS Build Server. There is no default step to use devenv, so I tried to use PowerShell sсript to execute devenv.exe with parameters. There are no errors in build process but I see that build result files are not updated. If I execute the script manually on a agent-machine, the build passes successfully. That is my script: $process = [System.Diagnostics.Process]::Start( "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7

how do I add preprocessor #define in devenv command line?

♀尐吖头ヾ 提交于 2020-01-02 01:04:52
问题 Is there a way to add extra preprocessor #define in devenv command line? 回答1: I am not entirely sure what you mean by vcbuild command line but if you mean the Visual C++ command line compiler then you can add defines by add /Dxxxx, e.g. cl.exe /DSHAREWARE .... Additional answer based on comments: You should be able to set the CL environment variable with the extra preprocessor define: SET CL=/DSHAREWARE devenv .... Mere information can be found at MSDN 回答2: The #defines are defined in your

how do I add preprocessor #define in devenv command line?

岁酱吖の 提交于 2020-01-02 01:04:41
问题 Is there a way to add extra preprocessor #define in devenv command line? 回答1: I am not entirely sure what you mean by vcbuild command line but if you mean the Visual C++ command line compiler then you can add defines by add /Dxxxx, e.g. cl.exe /DSHAREWARE .... Additional answer based on comments: You should be able to set the CL environment variable with the extra preprocessor define: SET CL=/DSHAREWARE devenv .... Mere information can be found at MSDN 回答2: The #defines are defined in your

Why msbuild is so slow when nothing has changed since the last build of the solution?

天大地大妈咪最大 提交于 2020-01-01 04:32:30
问题 I have a solution with 109 projects. A mix of all - .NET, Silverlight, MVC, Web Applications, Console applications. Now I build it on the console using msbuild. It takes some time. Understandable - lots of projects, lots of files. But when I build it the second time right after the first - it still takes lots of time, even if nothing is actually built - the diag msbuild log confirms it. For example, here is the Task performance summary for the first full build: Task Performance Summary: 4 ms

Build merge module without Devenv from .vdproj

血红的双手。 提交于 2019-12-22 06:59:28
问题 I read quit a few Stackoverflow Questions about building mergemodules via commandline but all of them were accepted when either somebody suggested to use devenv for compilation or use Dark to create wix-files from existing msi files. Considering the following: VisualStudio isn't installed on the buildserver I have to use. I am using nant + msbuild to compile the solutions I would like to compile mergemodules from .vdproj (because Visual Studio detects dependencies automatically) and create a

Run a solution from Visual Studio console without opening the IDE

可紊 提交于 2019-12-18 10:56:33
问题 I am using Visual Studio 2010 SP1. What I first tried was this: Open the Visual Studio console tool from start menu Navigate to project folder (which already contains an executable) Run: msbuild myproject.sln or msbuild myproject.sln /p:Configuration=Release This builds successfully, but I can't find an executable to run The second thing I tried was steps 1 and 2 from above Running: devenv myproject.sln /Build and devenv myproject.sln /Run This somewhat works but it seems to open the IDE to

How to specify the platform in devenv build CruiseControl.net

橙三吉。 提交于 2019-12-13 18:47:22
问题 When building with msbuild we can give the platform as below <msbuild> <buildArgs>Platform=x86</buildArgs> </msbuild> Do you know how to speficify the platform if we are using devenv? <devenv> ??? </devenv> 回答1: Use this syntax: <devenv> <configuration>Configuration|Platform</configuration> </devenv> for example: <devenv> <configuration>Debug|Win32</configuration> </devenv> 来源: https://stackoverflow.com/questions/5905652/how-to-specify-the-platform-in-devenv-build-cruisecontrol-net

devenv.com hangs in VS 2013

北城余情 提交于 2019-12-13 12:05:07
问题 When calling devenv.com from command line or FinalBuilder action within our automated build it sometimes hangs and never gets past compiling step. It is called with this parameters from C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE: devenv.com /build "Release|Any CPU" "D:\MyProject\MySolution.sln" It hangs forever on this step. When I open it in VS 2013 and ReBuild the solution it works fine every time. Any ideas? I've also tried it on other build machines and it does the