2018-02-16 21:32:29 +00:00
|
|
|
<Project ToolsVersion="15.0" DefaultTargets="ExtractDotnetToolsToOutput">
|
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.tasks))\dir.tasks" />
|
|
|
|
|
|
|
|
<Target Name="ExtractDotnetToolsToOutput"
|
|
|
|
DependsOnTargets="EnsureDotnetToolsRestored">
|
|
|
|
|
|
|
|
<Message Text="Restore DotnetTools $(TemplateFillInPackageName) from $(DotnetToolsNuPkgPath) to $(DotnetToolsLayoutDirectory)."
|
|
|
|
Importance="High" />
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="EnsureDotnetToolsRestored"
|
|
|
|
Condition="!Exists('$(DotnetToolsNuPkgPath)/$(TemplateFillInPackageName.ToLower())')">
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2018-06-08 23:03:24 +00:00
|
|
|
<DotnetToolsRestoreAdditionalParameters>--runtime any /p:RestoreProjectStyle=DotnetToolReference</DotnetToolsRestoreAdditionalParameters>
|
2018-03-02 05:27:28 +00:00
|
|
|
<DotnetToolsRestoreAdditionalParameters>$(DotnetToolsRestoreAdditionalParameters) /p:TargetFramework=$(CliTargetFramework)</DotnetToolsRestoreAdditionalParameters>
|
2018-02-16 21:32:29 +00:00
|
|
|
<DotnetToolsRestoreAdditionalParameters>$(DotnetToolsRestoreAdditionalParameters) /p:TemplateFillInPackageName=$(TemplateFillInPackageName)</DotnetToolsRestoreAdditionalParameters>
|
|
|
|
<DotnetToolsRestoreAdditionalParameters>$(DotnetToolsRestoreAdditionalParameters) /p:TemplateFillInPackageVersion=$(TemplateFillInPackageVersion)</DotnetToolsRestoreAdditionalParameters>
|
|
|
|
<DotnetToolsRestoreAdditionalParameters>$(DotnetToolsRestoreAdditionalParameters) /p:RestorePackagesPath=$(DotnetToolsLayoutDirectory)</DotnetToolsRestoreAdditionalParameters>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<DotNetRestore ToolPath="$(PreviousStageDirectory)"
|
|
|
|
ProjectPath="$(MSBuildThisFileDirectory)/templates/templates.csproj"
|
|
|
|
AdditionalParameters="$(DotnetToolsRestoreAdditionalParameters)" />
|
|
|
|
</Target>
|
|
|
|
</Project>
|