-
<!--update publish.htm file-->
<Import Project="$(MSBuildExtensionsPath)MSBuildCommunityTasksMSBuild.Community.Tasks.Targets" />
<Target Name="UpdatePublishHtm">
<Copy SourceFiles="$(MSBuildProjectDirectory)Propertiespublish.htm" DestinationFiles="$(MSBuildProjectDirectory)inDebugapp.publishpublish.htm"/>
<FileUpdate Files="$(MSBuildProjectDirectory)inDebugapp.publishpublish.htm" Regex="<TD>d+.d+.d+.d+</TD>" ReplacementText="<TD>$(ApplicationVersion)</TD>" />
<FileUpdate Files="$(MSBuildProjectDirectory)inDebugapp.publishpublish.htm" Regex=".*</TD></TR><TR>" ReplacementText=".$(ApplicationRevision)</TD></TR><TR>" />
</Target>
<!--publish wcf-->
<Target Name="PublishWpf" Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<PropertyGroup>
<wwwRoot Condition="$(wwwRoot)==''">Z:folder</wwwRoot>
</PropertyGroup>
<ItemGroup>
<PublishFiles Include="$(MSBuildProjectDirectory)inDebugapp.publish***.*" />
</ItemGroup>
<Copy SourceFiles="@(PublishFiles)" DestinationFiles="@(PublishFiles->'$(wwwRoot)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="True" />
</Target> - http://weblogs.asp.net/lkempe/automating-publish-of-clickonce-with-teamcity
- https://github.com/loresoft/msbuildtasks