How to synchronise the publish version to the assembly version in a .NET ClickOnce application?

后端 未结 5 1413
甜味超标
甜味超标 2020-12-14 01:10

In my C# ClickOnce application, there is an auto-incremented publish version in the Project -> Properties -> Publish tab. I\'d like to display that version

5条回答
  •  爱一瞬间的悲伤
    2020-12-14 01:24

    I modified my .csproj file to update the assembly version. I created a configuration called "Public Release" for this, but it's not required to do that.

      
      
      
        $(SolutionDir)Tools\MSBuildCommunityTasks
      
      
      
      
        
          
        
        
      
    

    The published version may be:

    ApplicationDeployment.CurrentDeployment.CurrentVersion
    

提交回复
热议问题