MSBuild is not generating publish web page (ClickOnce)

前端 未结 2 1517
独厮守ぢ
独厮守ぢ 2020-12-19 00:45

I am facing a problem that when I publish my ClickOnce application through MSBuild (4.0), the publish.htm (or default.htm) isn\'t created in the app.publish

2条回答
  •  生来不讨喜
    2020-12-19 01:13

    I found a good solution here. You can use a template for publish.htm with {VERSION} placeholder inside. MSBuild Community Tasks are required for the FileUpdate task.

    BUILD_VERSION - environment variable, set by my build script. PublishDir property is set in argument for msbuild.

      
    
      
        
        
        
        
      
    
    
    

提交回复
热议问题