Enable automatic NuGet package restoration
This commit is contained in:
parent
30dd139cf3
commit
7bf664b28d
2 changed files with 19 additions and 16 deletions
|
@ -4,16 +4,16 @@
|
||||||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
|
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
|
||||||
|
|
||||||
<!-- Enable the restore command to run before builds -->
|
<!-- Enable the restore command to run before builds -->
|
||||||
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
|
<RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages>
|
||||||
|
|
||||||
<!-- Property that enables building a package from a project -->
|
<!-- Property that enables building a package from a project -->
|
||||||
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
|
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
|
||||||
|
|
||||||
<!-- Determines if package restore consent is required to restore packages -->
|
<!-- Determines if package restore consent is required to restore packages -->
|
||||||
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
|
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">false</RequireRestoreConsent>
|
||||||
|
|
||||||
<!-- Download NuGet.exe if it does not already exist -->
|
<!-- Download NuGet.exe if it does not already exist -->
|
||||||
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
|
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">true</DownloadNuGetExe>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(PackageSources)' == '' ">
|
<ItemGroup Condition=" '$(PackageSources)' == '' ">
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
<Name>BuildTasks</Name>
|
<Name>BuildTasks</Name>
|
||||||
<ProjectName>BuildTasks</ProjectName>
|
<ProjectName>BuildTasks</ProjectName>
|
||||||
|
<RestorePackages>true</RestorePackages>
|
||||||
|
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\</SolutionDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(MSBuildThisFileDirectory)..\paths.props" />
|
<Import Project="$(MSBuildThisFileDirectory)..\paths.props" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
@ -62,4 +64,5 @@
|
||||||
<Reference Include="System.Numerics" />
|
<Reference Include="System.Numerics" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
|
||||||
</Project>
|
</Project>
|
Loading…
Reference in a new issue