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-03-08 19:10:53 +00:00
|
|
|
|
2017-02-10 20:13:44 +00:00
|
|
|
<GetCurrentRuntimeInformation>
|
2017-02-08 22:02:29 +00:00
|
|
|
<Output TaskParameter="Rid" PropertyName="HostRid" />
|
|
|
|
<Output TaskParameter="OSName" PropertyName="HostOSName" />
|
2017-02-07 23:45:19 +00:00
|
|
|
</GetCurrentRuntimeInformation>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<HostInfoPropsContent>
|
|
|
|
<Project ToolsVersion="15.0">
|
|
|
|
<PropertyGroup>
|
2017-03-08 19:10:53 +00:00
|
|
|
<HostRid>$(HostRid)</HostRid>
|
|
|
|
<HostOSName>$(HostOSName)</HostOSName>
|
2017-02-07 23:45:19 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
</Project>
|
|
|
|
</HostInfoPropsContent>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<WriteLinesToFile File="$(HostInfoProps)"
|
2017-02-09 18:50:21 +00:00
|
|
|
Lines="$(HostInfoPropsContent)"
|
|
|
|
Overwrite="true" />
|
2017-02-07 23:45:19 +00:00
|
|
|
</Target>
|
|
|
|
</Project>
|