Incremental MSBuild with vcxproj file
-
Wednesday, August 01, 2012 8:45 PM
With the following fragment of my standard .vcxproj file, how can I have a msbuild 4.0 process run incrementally for C++? http://msdn.microsoft.com/en-us/library/ms171483.aspx is unclear on the specific format for what I'm looking for.
Thanks
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
....
<Target Name = "BuildIncremental"
Inputs="@(ClInclude);@(ClCompile)"
Outputs="$(TargetDir)$(TargetName)$(TargetExt)">
<!--<MSBuild Projects="$(ProjectName).vcxproj" />--> <!-- will cause a circular dependency-->
</Target>
</Project>bcasner
All Replies
-
Tuesday, August 07, 2012 3:01 PMModerator
Brad,
The question is being investigated, please wait some time.
thanks.
Forrest Guo | MSDN Community Support | Feedback to manager
-
Wednesday, August 08, 2012 7:44 AMModerator
You write incremental build target correctly, but the "msbuild" task has unexpected parameter. It's supposed to build *other* project with this task. That's why it build same project recursively.
See msbuild task reference here
thanks.
Forrest Guo | MSDN Community Support | Feedback to manager
- Proposed As Answer by Forrest GuoMicrosoft Employee, Moderator Wednesday, August 08, 2012 7:44 AM
- Marked As Answer by Ego JiangMicrosoft Contingent Staff, Moderator Tuesday, September 11, 2012 7:26 AM

