Automatically publish web application on build from Visual Studio 2015

后端 未结 3 424
感情败类
感情败类 2021-01-12 11:07

Is there any way to automatically have a web application published using a pre-created publish profile on successful build? I don\'t want to have to click the publish icon,

3条回答
  •  一向
    一向 (楼主)
    2021-01-12 12:04

    Add the following to your project file:

    
      
    
    

    The value of PublishProfile (Local in the example above) is the name of the publish profile you want to run.

    Sources:
    https://www.dotnetcatch.com/2017/03/24/publish-webdeploy-automatically-with-vs-build/
    https://stackoverflow.com/a/41830433/90287

提交回复
热议问题