2017-02-07 23:45:19 +00:00
|
|
|
<Project ToolsVersion="15.0">
|
|
|
|
<Target Name="WriteHostInfoProps"
|
2017-02-08 00:52:08 +00:00
|
|
|
Condition=" !Exists('$(HostInfoProps)') "
|
|
|
|
DependsOnTargets="BuildDotnetCliBuildFramework">
|
2017-02-08 22:02:29 +00:00
|
|
|
<!-- Current Runtime Information -->
|
|
|
|
<GetCurrentRuntimeInformation OverrideRid="$(OverrideRid)">
|
|
|
|
<Output TaskParameter="Rid" PropertyName="HostRid" />
|
|
|
|
<Output TaskParameter="Architecture" PropertyName="HostArchitecture" />
|
|
|
|
<Output TaskParameter="OSName" PropertyName="HostOSName" />
|
2017-02-07 23:45:19 +00:00
|
|
|
</GetCurrentRuntimeInformation>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<HostInfoPropsContent>
|
|
|
|
<Project ToolsVersion="15.0">
|
|
|
|
<PropertyGroup>
|
2017-02-08 22:02:29 +00:00
|
|
|
<Rid>$(HostRid)</Rid>
|
|
|
|
<Architecture>$(HostArchitecture)</Architecture>
|
|
|
|
<OSName>$(HostOSName)</OSName>
|
2017-02-07 23:45:19 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
</Project>
|
|
|
|
</HostInfoPropsContent>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<WriteLinesToFile File="$(HostInfoProps)"
|
|
|
|
Lines="$(HostInfoPropsContent)" />
|
|
|
|
</Target>
|
|
|
|
</Project>
|