Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit a0ffac2

Browse files
committed
Minor build fixes and improvements around restore
1 parent 5141dcb commit a0ffac2

7 files changed

Lines changed: 160 additions & 22 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ project.lock.json
2424
log.txt
2525
test.proj
2626
*.log
27+
*.g

build.proj

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<PropertyGroup>
14-
<NuGetUrl Condition=" '$(NuGetUrl)' == '' ">https://dist.nuget.org/win-x86-commandline/v3.4.4/NuGet.exe</NuGetUrl>
14+
<NuGetUrl Condition=" '$(NuGetUrl)' == '' ">https://dist.nuget.org/win-x86-commandline/latest/nuget.exe</NuGetUrl>
1515
<RestorePackages>false</RestorePackages>
1616
<RunCodeAnalysis Condition=" '$(RunCodeAnalysis)' == ''">false</RunCodeAnalysis>
1717
<IntermediateOutputPath>.nuget\</IntermediateOutputPath>
@@ -22,6 +22,7 @@
2222
</PropertyGroup>
2323

2424
<ItemGroup>
25+
<Solution Include="external\ApiIntersect\ApiIntersect.sln" />
2526
<Solution Include="src\Build\NuGet.Build.Packaging.sln" />
2627
<Solution Include="src\VisualStudio\NuGet.Packaging.VisualStudio.15\NuGet.Packaging.VisualStudio.15.csproj" />
2728
<TestProject Include="src\Build\**\*Tests.csproj" />
@@ -75,22 +76,15 @@
7576

7677
<Target Name="Restore">
7778
<ItemGroup>
78-
<NuGetRestore Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_library_with_non_nugetized_reference\b.sln" />
79-
<NuGetRestore Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_multi_platform_solution\forms.sln" />
80-
<NuGetRestore Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_library_with_json_dependencies\project.json" />
81-
<MSBuildRestore Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_packaging_project_with_netstandard\a.nuproj" />
82-
<MSBuildRestore Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_library_with_private_assets_reference\a.csproj" />
83-
84-
<MSBuildRestore Include="external\ApiIntersect\ApiIntersect.sln" />
85-
<MSBuildRestore Include="src\Build\NuGet.Build.Packaging.sln" />
86-
<MSBuildRestore Include="src\VisualStudio\NuGet.Packaging.VisualStudio.sln" />
79+
<RestoreProject Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_library_with_non_nugetized_reference\b.sln" />
80+
<RestoreProject Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_multi_platform_solution\forms.sln" />
81+
<RestoreProject Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_library_with_json_dependencies\a.csproj" />
82+
<RestoreProject Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_packaging_project_with_netstandard\a.nuproj" />
83+
<RestoreProject Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_library_with_private_assets_reference\a.csproj" />
84+
8785
</ItemGroup>
8886

89-
<Exec Command='"$(NuGet)" Restore "%(NuGetRestore.Identity)" -Verbosity quiet'
90-
WorkingDirectory='%(RestoreSolution.RootDir)%(RestoreSolution.Directory)'/>
91-
92-
<Exec Command='"$(MSBuildBinPath)\MSBuild.exe" /t:Restore "%(MSBuildRestore.Identity)" /v:Minimal'
93-
WorkingDirectory='%(RestoreSolution.RootDir)%(RestoreSolution.Directory)'/>
87+
<MSBuild Projects="@(Solution);@(TestProject);@(RestoreProject)" Targets="Restore" Properties="$(CommonBuildProperties)" />
9488
</Target>
9589

9690
<Target Name="Coverage" DependsOnTargets="Build">

0 commit comments

Comments
 (0)