Replace dotnet restore with nuget.exe restore as it'll take care of both packages.config based and csproj package reference based dependencies
This commit is contained in:
Родитель
0cb25f5139
Коммит
23cdc14d9e
|
@ -170,7 +170,7 @@
|
|||
|
||||
<Target Name="Build" DependsOnTargets="CheckBuildParameters;DownloadCLI">
|
||||
<Exec Command='"$(CliToolsPath)\dotnet.exe" --version' />
|
||||
<Exec Command='"$(CliToolsPath)\dotnet.exe" restore' ContinueOnError="ErrorAndStop" />
|
||||
<Exec Command='"nuget.exe" restore' ContinueOnError="ErrorAndStop" />
|
||||
<Exec Command='"$(CliToolsPath)\dotnet.exe" build $(ProjectToBuild) -c $(Configuration)' ContinueOnError="ErrorAndStop" />
|
||||
<Exec Condition="$(RunTests) != '' And $(RunTests)" Command='"$(CliToolsPath)\dotnet.exe" build %(TestProject.Identity) -c $(Configuration)' ContinueOnError="ErrorAndStop" />
|
||||
<Message Condition="$(RunTests) != '' And $(RunTests)" Importance="high" Text="Running tests..."></Message>
|
||||
|
|
Загрузка…
Ссылка в новой задаче