首页 > 其他 > 详细

如何在ClickOnce 应用中使用 GitVersion

时间:2019-11-03 09:39:20      阅读:77      评论:0      收藏:0      [点我收藏+]

https://github.com/GitTools/GitVersion/issues/1153

 

 

I‘m using GitVersion in an internal ClickOnce application. It‘s quite easy to setup. I‘ve added following target in my .csproj file:

<Target Name="MyApp_SetClickOnceVersion" AfterTargets="UpdateAssemblyInfo" DependsOnTargets="GetVersion" BeforeTargets="_DeploymentComputeClickOnceManifestInfo">
  <CreateProperty Value="$(GitVersion_AssemblySemVer)">
    <Output TaskParameter="Value" PropertyName="ApplicationVersion" />
  </CreateProperty>
  <!-- for VSTO -->
  <CreateProperty Value="$(ApplicationVersion)">
    <Output TaskParameter="Value" PropertyName="PublishVersion" />
  </CreateProperty>
  <Message Text="ApplicationVersion: $(ApplicationVersion)" Importance="High" />
</Target>

This will set the properties ApplicationVersion and PublishVersion dynamically to the correct value.

如何在ClickOnce 应用中使用 GitVersion

原文:https://www.cnblogs.com/MysticBoy/p/11785036.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!