28 lines
1 KiB
XML
28 lines
1 KiB
XML
<Project ToolsVersion="15.0">
|
|
<Target Name="WriteHostInfoProps"
|
|
Condition=" !Exists('$(HostInfoProps)') "
|
|
DependsOnTargets="BuildDotnetCliBuildFramework">
|
|
<!-- Current Runtime Information -->
|
|
<GetCurrentRuntimeInformation>
|
|
<Output TaskParameter="Rid" PropertyName="HostRid" />
|
|
<Output TaskParameter="Architecture" PropertyName="HostArchitecture" />
|
|
<Output TaskParameter="OSName" PropertyName="HostOSName" />
|
|
</GetCurrentRuntimeInformation>
|
|
|
|
<PropertyGroup>
|
|
<HostInfoPropsContent>
|
|
<Project ToolsVersion="15.0">
|
|
<PropertyGroup>
|
|
<Rid>$(HostRid)</Rid>
|
|
<Architecture>$(HostArchitecture)</Architecture>
|
|
<OSName>$(HostOSName)</OSName>
|
|
</PropertyGroup>
|
|
</Project>
|
|
</HostInfoPropsContent>
|
|
</PropertyGroup>
|
|
|
|
<WriteLinesToFile File="$(HostInfoProps)"
|
|
Lines="$(HostInfoPropsContent)"
|
|
Overwrite="true" />
|
|
</Target>
|
|
</Project>
|