MSBuild: Conditional Construct (Project Reference | File Reference)

北城余情 提交于 2019-11-30 23:50:25

Regarding the conditional 'how', assuming you have either

<ProjectReference ...>...</ProjectReference>

or

<Reference ...>...</Reference>

you want to hand-edit the .proj file to include both thusly

<ProjectReference Condition="'$(Configuration)'!='DebugVB'" ...>...</ProjectReference>
<Reference Condition="'$(Configuration)'=='DebugVB'" ...>...</Reference>

Almost forgot this question: the answer from Brian works perfectly for me.

And to answer the second part of the question:

It indeed eliminates the need for a cobol compiler on every maschine if you setup different Configurations.

Thanks Brian.

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