Checking if a Property 'Starts/Ends With' in a csproj

后端 未结 1 2085
慢半拍i
慢半拍i 2021-02-12 06:28

I\'m setting up some configurations in my csproj files that will target different framework versions. Ideally I want configurations of \'Debug - 3.5\', \'Debug - 4.0\', \'Releas

相关标签:
1条回答
  • 2021-02-12 06:38

    An MSBuild property is just a .NET String and has property functions available.

    Condition="$(Configuration.EndsWith('3.5'))"
    

    Should work

    0 讨论(0)
提交回复
热议问题