2017-02-07 23:45:19 +00:00
|
|
|
<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"
|
2017-02-08 00:52:08 +00:00
|
|
|
Condition=" !Exists('$(HostInfoProps)') "
|
|
|
|
DependsOnTargets="BuildDotnetCliBuildFramework">
|
2017-02-07 23:45:19 +00:00
|
|
|
<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>
|
|
|
|
|
2017-02-08 01:34:41 +00:00
|
|
|
<MakeDir Directories="$(GeneratedPropsDir)" />
|
2017-02-07 23:45:19 +00:00
|
|
|
|
|
|
|
<WriteLinesToFile File="$(HostInfoProps)"
|
|
|
|
Lines="$(HostInfoPropsContent)" />
|
|
|
|
</Target>
|
|
|
|
</Project>
|