-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
It would be very handy to be able to use MSBuild Conditional statements and MSBuild Properties within the slnx file.
This would allow for conditional inclusion or exclusion of projects and also to allow paths to dependent projects be configurable.
<Solution>
<Configurations>
<Platform Name="Any CPU" />
</Configurations>
<Project Path="C\C.csproj" Condition="Exists('C\C.csproj')" />
<Project Path="B\B.csproj" />
<Project Path="A\A.csproj">
<BuildDependency Project="B\B.csproj" />
<BuildDependency Project="C\C.csproj" Condition="Exists('C\C.csproj')"/>
</Project>
</Solution>
or
<Solution>
<Configurations>
<Platform Name="Any CPU" />
</Configurations>
<Project Path="$(PathToC)\C.csproj" Condition="Exists('$(PathToC)\C.csproj')" />
<Project Path="B\B.csproj" />
<Project Path="A\A.csproj">
<BuildDependency Project="B\B.csproj" />
<BuildDependency Project="$(PathToC)\C.csproj" Condition="Exists('$(PathToC)\C.csproj')"/>
</Project>
</Solution>
dellis1972 and alysson-kneat
Metadata
Metadata
Assignees
Labels
No labels