Say you have a .NET Core PCL that should compile for multiple platforms. Since csproj-based projects only support compilation for one platform at a time, you cannot have one in common project.json. So your directory structure is as follows:
LibFoo
|
|
|
| |
|
|
|
You also have two MSBuild target platforms: Net45and NetCore451. When creating for, Net45you want to include the project file in Platforms/net45, and for NetCore451(by the way, this is Windows 8.1) you want to include it in NetCore451.
How could you implement this in MSBuild? Here is what I still have:
<PropertyGroup>
<ProjectJsonRoot>Platforms\$(Platform.ToLower())</ProjectJsonRoot>
<ProjectJson>$(ProjectJsonRoot)\project.json</ProjectJson>
</PropertyGroup>
TL; DR:. project.json csproj, , ?
.