I am creating a Visual Studio 2010 solution through Python with a subprocess call. When called directly from the command line, devenv.com takes ~ 15 seconds. But when called from Python, this is a jump of up to ~ 1.5 minutes.
Naturally, I hope to remove this dead time from our assembly. So I decided to test MSBuild.exe (from .NET 4). It looks like MSBuild.exe is starting instantly. But ... he seems to be doing a complete build every time, not incremental.
The command I use
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "C:\path\to\my\project.sln" /target:build /maxcpucount:8 /property:Configuration=Release
It seems like this should support incremental builds. But I saw messages on the Internet indicating that msbuild might not be able to support an incremental build like this.
Is it possible? If so, what am I doing wrong?
Update:
I read it a little more. Based upon
http://msdn.microsoft.com/en-us/library/ms171483.aspx
and
http://www.digitallycreated.net/Blog/67/incremental-builds-in-msbuild-and-how-to-avoid-breaking-them
I seem to need the input and output properties set in my .vcxproj files. Checking my files, they are really missing.
When will they be generated? Most of my .vcxproj files were converted from Visual Studio 2008. But I also created a new project that lacks input and output properties.
Does VS2010 create projects with these properties?
Update: from the moment of updating to VS 2013. Now msbuild supports incremental builds. Never got into the core of VS 2010 issue.
source share