dotnet-installer/old/build/HostInfo.targets

27 lines
938 B
Text
Raw Normal View History

<Project ToolsVersion="15.0">
<Target Name="WriteHostInfoProps"
Condition=" !Exists('$(HostInfoProps)') "
DependsOnTargets="BuildDotnetCliBuildFramework">
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" />
</GetCurrentRuntimeInformation>
<PropertyGroup>
<HostInfoPropsContent>
&lt;Project ToolsVersion=&quot;15.0&quot; xmlns=&quot;http://schemas.microsoft.com/developer/msbuild/2003&quot;&gt;
&lt;PropertyGroup&gt;
&lt;HostRid&gt;$(HostRid)&lt;/HostRid&gt;
&lt;HostOSName&gt;$(HostOSName)&lt;/HostOSName&gt;
&lt;/PropertyGroup&gt;
&lt;/Project&gt;
</HostInfoPropsContent>
</PropertyGroup>
<WriteLinesToFile File="$(HostInfoProps)"
2017-02-09 18:50:21 +00:00
Lines="$(HostInfoPropsContent)"
Overwrite="true" />
</Target>
</Project>