You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
5 years ago
|
<Project DefaultTargets="Build">
|
||
|
|
||
|
<PropertyGroup>
|
||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||
|
|
||
|
<!-- Enable roll-forward to latest patch. This allows one restore operation
|
||
|
to apply to all of the self-contained publish operations. -->
|
||
|
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
|
||
|
</PropertyGroup>
|
||
|
|
||
|
<Target Name="PublishAllRids">
|
||
|
<ItemGroup>
|
||
|
<Frameworks Include="$(TargetFrameworks)" />
|
||
|
|
||
|
<Combined Include="$(RuntimeIdentifiers)">
|
||
|
<Framework>%(Frameworks.Identity)</Framework>
|
||
|
</Combined>
|
||
|
|
||
|
<Renamed Include="@(Combined->'%(Identity):%(Framework)')">
|
||
|
<Runtime>%(Identity)</Runtime>
|
||
|
<Framework>%(Framework)</Framework>
|
||
|
</Renamed>
|
||
|
|
||
|
<!-- Transform RuntimeIdentifierForPublish items to project items to pass to MSBuild task -->
|
||
|
<ProjectToPublish Include="@(Renamed->'$(MSBuildProjectFullPath)')">
|
||
|
<AdditionalProperties>RuntimeIdentifier=%(Renamed.Runtime);TargetFramework=%(Renamed.Framework)</AdditionalProperties>
|
||
|
</ProjectToPublish>
|
||
|
</ItemGroup>
|
||
|
|
||
|
<MSBuild Projects="@(ProjectToPublish)"
|
||
|
Targets="Publish"
|
||
|
BuildInParallel="true"
|
||
|
/>
|
||
|
</Target>
|
||
|
|
||
|
</Project>
|