26 lines
938 B
XML
26 lines
938 B
XML
<Project ToolsVersion="15.0">
|
|
<Target Name="WriteHostInfoProps"
|
|
Condition=" !Exists('$(HostInfoProps)') "
|
|
DependsOnTargets="BuildDotnetCliBuildFramework">
|
|
|
|
<GetCurrentRuntimeInformation>
|
|
<Output TaskParameter="Rid" PropertyName="HostRid" />
|
|
<Output TaskParameter="OSName" PropertyName="HostOSName" />
|
|
</GetCurrentRuntimeInformation>
|
|
|
|
<PropertyGroup>
|
|
<HostInfoPropsContent>
|
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<HostRid>$(HostRid)</HostRid>
|
|
<HostOSName>$(HostOSName)</HostOSName>
|
|
</PropertyGroup>
|
|
</Project>
|
|
</HostInfoPropsContent>
|
|
</PropertyGroup>
|
|
|
|
<WriteLinesToFile File="$(HostInfoProps)"
|
|
Lines="$(HostInfoPropsContent)"
|
|
Overwrite="true" />
|
|
</Target>
|
|
</Project>
|