Skip to content

Commit

Permalink
Add NuGet.config
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Jul 15, 2021
1 parent 744b4fa commit 71f8d5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ci/windows/NuGet.config
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
File renamed without changes.
5 changes: 3 additions & 2 deletions ci/windows/run.ps1
Expand Up @@ -30,7 +30,8 @@ if ([string]::IsNullOrEmpty($Config)) {
$sln = "$Root\ci\windows\Windows.sln"
$packagesDir = "$Root\src\packages\"
$testResultsDir = "$Root\artifacts\test\"
$samplesDir = "$root\src\DotVVM.Samples.Tests"
$samplesDir = "$Root\src\DotVVM.Samples.Tests\"
$ciDir = "$Root\ci\windows\"

Write-Host "ROOT=$Root"
Write-Host "SLN=$sln"
Expand Down Expand Up @@ -104,7 +105,7 @@ if ($NoNpmBuild -ne $true) {
if ($NoSlnRestore -ne $true) {
Ensure-Command "sln restore" {
Set-Location $Root
& "$Root\src\Tools\NuGet.exe" restore $sln -PackagesDirectory $packagesDir
& "$ciDir\NuGet.exe" restore $sln -PackagesDirectory $packagesDir -ConfigFile "$ciDir\NuGet.config"
dotnet restore $sln --packages $packagesDir
}
}
Expand Down

0 comments on commit 71f8d5f

Please sign in to comment.