31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
|
<Project ToolsVersion="15.0">
|
||
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
||
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.tasks))\dir.tasks" />
|
||
|
|
||
|
<Target Name="WriteHostInfoProps"
|
||
|
Condition=" !Exists('$(HostInfoProps)') ">
|
||
|
<GetCurrentRuntimeInformation>
|
||
|
<Output TaskParameter="Rid" PropertyName="Rid" />
|
||
|
<Output TaskParameter="Architecture" PropertyName="Architecture" />
|
||
|
<Output TaskParameter="OSName" PropertyName="OSName" />
|
||
|
</GetCurrentRuntimeInformation>
|
||
|
|
||
|
<PropertyGroup>
|
||
|
<HostInfoPropsContent>
|
||
|
<Project ToolsVersion="15.0">
|
||
|
<PropertyGroup>
|
||
|
<HostRid>$(Rid)</HostRid>
|
||
|
<HostArchitecture>$(Architecture)</HostArchitecture>
|
||
|
<HostOSName>$(OSName)</HostOSName>
|
||
|
</PropertyGroup>
|
||
|
</Project>
|
||
|
</HostInfoPropsContent>
|
||
|
</PropertyGroup>
|
||
|
|
||
|
<MakeDir Directories="$(RepoRoot)/obj"/>
|
||
|
|
||
|
<WriteLinesToFile File="$(HostInfoProps)"
|
||
|
Lines="$(HostInfoPropsContent)" />
|
||
|
</Target>
|
||
|
</Project>
|