Is it possible for Visual Studio C ++ to compile objects without binding

I run VS 2010 SP1 and I have a special analysis configuration that runs once a week (because the build server takes a lot of time).

I would like this configuration to work without binding. If the analysis passes for all the code in the project, I would like the assembly to just continue the transition to the next project without a link.

I see no way to tell VS to just start the C ++ compiler without a link. Does anyone know a way to do this in existing vcxproj?

[Edit] Clarification: I would like this to work from the IDE.

The next step is to manually edit vcxproj to see if I can get rid of the build phase of the assembly.

+7
source share
2 answers

Only in this situation; trying to build without binding when using the IDE.

To achieve this for my configuration, I changed the configuration type of my application:

General -> Project Defaults -> Configuration Type 

In particular, the transition from Application (.exe) to Static library (.lib) . This will allow you to create all your projects (s), but does not require any links.

+2
source

The C ++ compiler cl.exe , of course, may switch that /c (only compile, do not reference). Not sure about the msbuild system that the IDE uses and that works with .vcxproj files.

According to the documentation , this should work:

 msbuild /target:Compile projectfile 

or

 msbuild /target:projectname:Compile solutionfile 

You may also be interested in the /filelogger and /fileloggerparameters , which allow you to capture assembly messages.

+3
source

All Articles