• msbuild wpf publish.htm


    1. <!--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="&lt;TD&gt;d+.d+.d+.d+&lt;/TD&gt;" ReplacementText="&lt;TD&gt;$(ApplicationVersion)&lt;/TD&gt;" />
      <FileUpdate Files="$(MSBuildProjectDirectory)inDebugapp.publishpublish.htm" Regex=".*&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;" ReplacementText=".$(ApplicationRevision)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;" />
      </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>

    2. http://weblogs.asp.net/lkempe/automating-publish-of-clickonce-with-teamcity
    3. https://github.com/loresoft/msbuildtasks
  • 相关阅读:
    HashMap实现原理
    设计模式-2-代理模式
    设计模式-1-单例模式
    重构技巧
    unable to create new native thread
    设计模式-6大原则
    阿里前端在线编程题
    如何实现用户懒加载?
    《我敢活成我想要的样子》读后感
    改bug心得
  • 原文地址:https://www.cnblogs.com/dmdj/p/3758649.html
Copyright © 2020-2023  润新知