|
11 | 11 | <BuildPortable Condition=" '$(BuildPortable)' == '' ">true</BuildPortable> |
12 | 12 | <BuildInParallel Condition=" '$(BuildInParallel)' == '' And $(MSBuildNodeCount) > 1 ">true</BuildInParallel> |
13 | 13 | <BuildInParallel Condition=" '$(BuildInParallel)' == '' ">false</BuildInParallel> |
| 14 | + <RestoreInParallel Condition=" '$(RestoreInParallel)' == '' ">false</RestoreInParallel> |
14 | 15 | <TestInParallel Condition=" '$(TestInParallel)' == '' ">false</TestInParallel> |
15 | 16 | <TestResultsDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\test\TestResults\</TestResultsDirectory> |
16 | 17 | <SkipStrongNamesExe>$(MSBuildThisFileDirectory)packages\Microsoft.Web.SkipStrongNames.1.0.0\tools\SkipStrongNames.exe</SkipStrongNamesExe> |
|
64 | 65 | </Target> |
65 | 66 |
|
66 | 67 | <Target Name="RestorePackages" DependsOnTargets="DownloadNuGet"> |
67 | | - <ItemGroup> |
68 | | - <_NuGetPackagesAndSolutions Include="Runtime.sln" /> |
69 | | - |
70 | | - <!-- Avoid restoring RuntimePortable.sln directly. --> |
71 | | - <_NuGetPackagesAndSolutions Include="src\System.Net.Http.Formatting.NetCore\packages.config; |
72 | | - test\System.Net.Http.Formatting.NetCore.Test\packages.config" |
73 | | - Condition=" '$(BuildPortable)' == 'true' " /> |
74 | | - <_ProjectsToRestore Include="test\System.Net.Http.Formatting.NetStandard.Test\System.Net.Http.Formatting.NetStandard.Test.csproj" |
75 | | - Condition=" '$(BuildPortable)' == 'true' " /> |
76 | | - </ItemGroup> |
77 | | - |
78 | | - <Message Text="Restoring NuGet packages..." Importance="High" /> |
79 | | - <Exec Command='"$(NuGetExe)" restore "%(_NuGetPackagesAndSolutions.Identity)" ^ |
80 | | - -PackagesDirectory packages -NonInteractive -Verbosity quiet' /> |
81 | | - <MSBuild Projects="@(_ProjectsToRestore)" Targets="Restore" |
82 | | - BuildInParallel="$(BuildInParallel)" |
83 | | - Condition=" '$(BuildPortable)' == 'true' " |
84 | | - Properties="Configuration=$(Configuration);CodeAnalysis=$(CodeAnalysis);StyleCopEnabled=$(StyleCopEnabled);VisualStudioVersion=$(VisualStudioVersion)" /> |
| 68 | + <Message Text="%0ARestoring NuGet packages..." Importance="High" /> |
| 69 | + <MSBuild Projects="@(SolutionsToBuild)" Targets="Restore" |
| 70 | + BuildInParallel="$(RestoreInParallel)" |
| 71 | + Properties="Configuration=$(Configuration);CodeAnalysis=$(CodeAnalysis);StyleCopEnabled=$(StyleCopEnabled); |
| 72 | + RestorePackagesConfig=true;VisualStudioVersion=$(VisualStudioVersion)" /> |
| 73 | + <Message Importance="High" Text="" /> |
85 | 74 | </Target> |
86 | 75 |
|
87 | 76 | <!-- Pick the right Microsoft.Web.FxCop package to use and copy it to a standard location. --> |
|
96 | 85 | Properties="Configuration=Release;OutputPath=$(CustomFxCopRulesPath)" /> |
97 | 86 | </Target> |
98 | 87 |
|
99 | | - <Target Name="Build" DependsOnTargets="RestorePackages;BuildTools"> |
| 88 | + <Target Name="Build" DependsOnTargets="RestoreSkipStrongNames;RestorePackages;BuildTools"> |
100 | 89 | <!-- we need to batch the solution files since they both build Microsoft.TestCommon --> |
101 | 90 | <Error Condition=" '$(CodeAnalysis)' == 'true' and '$(Configuration)' == 'Release' " Text="Unable to run code analysis in Release configuration. Release assemblies do not include SuppressMessage attributes (so code analysis would always fail with the errors that are normally suppressed)." /> |
102 | 91 | <MakeDir Directories="bin\$(Configuration)" /> |
|
0 commit comments