Issue Building a single project using msbuild that has multiple configurations

前端 未结 5 776
臣服心动
臣服心动 2021-02-06 23:14

Issue

We are using config transforms inside our solution. For example: Debug, Test, Staging, Release However, those configurations are only used on our

5条回答
  •  感动是毒
    2021-02-07 00:11

    One simple solution would be to add a new property to your projects called "DeploymentConfiguration" and have it do the mapping between configs. Example:

      
      
     Debug
     Debug
    

    Then in your MSBuild invocation, pass in

     /p:DeploymentConfiguration=Test
    

    In your deployment MVC you'd just assign DeploymentConfiguration through to Configuration directly.

提交回复
热议问题