Configuration for ProjectReference in MSBuild

时光总嘲笑我的痴心妄想 提交于 2019-12-04 05:08:30

Another possible method of setting ProjectReference configuration and platform is to use a property picked up the MSBuild's reference handling code called SetPlatform and SetConfiguration. Example:

<ProjectReference Include="path to project.projext">
  <SetPlatform>Platform=x64</SetPlatform>
  <SetConfiguration>Configuration=Release</SetConfiguration>
</ProjectReference>

Leaving the question in case some one else gets the same idea as I did. The solution was pretty straight forward. Don't do it. Turn it around. Just use any other property for the deployment script and map the different deployment configuration to existing Project configurations.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!