Team System Developer Center >
Visual Studio Team System Forums
>
Team Foundation Server - Build Automation
>
Skip compilation
Skip compilation
- I would like to be able to skip the compilation step conditionally with a command line option, ie. /p:SkipCompilation=true
Often a TFS build will compile the solutions successfully, but fails in some post-compile step. I would like to be able to fix and rebuild without compiling the source code again.
Thanks.
Answers
- Hi ,
Sorry that I misunderstand you in last reply.
There is a workaround to meet yhis requirement.
1 add <SkipCompilation>true</SkipCompilation> to <PropertyGroup> in TFSBuild.proj
2 modify <ConfigurationToBuild> itemgroup
<ItemGroup Condition=" '$(SkipCompilation)' != 'true' "> <ConfigurationToBuild Include="Release|Any CPU"> <FlavorToBuild>Release</FlavorToBuild> <PlatformToBuild>Any CPU</PlatformToBuild> </ConfigurationToBuild> </ItemGroup>
Best Regards,
Ruiz
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi- Marked As Answer byRuiz YiModeratorMonday, November 09, 2009 2:05 AM
All Replies
- Hi,
You can add SkipCompilation=true to <CustomPropertiesForBuild> in TFSBuild.proj
Best Regards,
Ruiz
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi - Would this skip the compilation steps?
Here's what the build is doing now:
Initializing build
Getting sources
Labeling sources
Compiling sources for Win32/Release.
Project "TFSBuild.proj" is building "Projects.sln" with default targets.
Generating list of changesets and updating work items
Copying binaries to drop location
Succeeded
What I want to do is to skip the BOLD steps with a command line argument:
Initializing build
Getting sources
Labeling sources
Generating list of changesets and updating work items
Copying binaries to drop location
Succeeded
Thanks. - Hi ,
Sorry that I misunderstand you in last reply.
There is a workaround to meet yhis requirement.
1 add <SkipCompilation>true</SkipCompilation> to <PropertyGroup> in TFSBuild.proj
2 modify <ConfigurationToBuild> itemgroup
<ItemGroup Condition=" '$(SkipCompilation)' != 'true' "> <ConfigurationToBuild Include="Release|Any CPU"> <FlavorToBuild>Release</FlavorToBuild> <PlatformToBuild>Any CPU</PlatformToBuild> </ConfigurationToBuild> </ItemGroup>
Best Regards,
Ruiz
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi- Marked As Answer byRuiz YiModeratorMonday, November 09, 2009 2:05 AM


