Link build configuration to a publish profile

后端 未结 3 2048
灰色年华
灰色年华 2020-12-31 00:59

Why does Microsoft not allow you to link a build configuration to a publish profile. Instead it tells you to use the dropdown in the main VS interface.

3条回答
  •  一个人的身影
    2020-12-31 01:24

    To get around this, you can write a batch script to do both parts of the process. Use MSBuild to build your projects in the required build configuration (we use release for our web apps). If all you need to do is copy the output, MSBuild should be able to do that for you as well with a copy task. If you need to deploy a web application, use MSDeploy command line tools to complete the publish command. Going command line with both of these tools opens up a lot of customization.

提交回复
热议问题