45a1e9e56c
* Allow host info passed in from the command line to override machine settings * Simplify the logic * Address PR comments to keep a separate HostRid and HostOSName that are static * Rename to BuildInfo.props * Address PR comments * Fix the previous merge * Fix spacing * Address PR comments
26 lines
868 B
XML
26 lines
868 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">
|
|
<PropertyGroup>
|
|
<HostRid>$(HostRid)</HostRid>
|
|
<HostOSName>$(HostOSName)</HostOSName>
|
|
</PropertyGroup>
|
|
</Project>
|
|
</HostInfoPropsContent>
|
|
</PropertyGroup>
|
|
|
|
<WriteLinesToFile File="$(HostInfoProps)"
|
|
Lines="$(HostInfoPropsContent)"
|
|
Overwrite="true" />
|
|
</Target>
|
|
</Project>
|