File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,6 @@ if ($msbuild) {
9
9
$msbuild = join-path $msbuild ' MSBuild\15.0\Bin\MSBuild.exe'
10
10
}
11
11
12
- function Start-NugetRestore {
13
- write-host - foreground blue " Restore nugets...`n "
14
- dotnet restore " $root \UnitsNet.sln"
15
-
16
- # This project type is not supported by dotnet CLI yet
17
- & $nuget restore " $root \UnitsNet.WindowsRuntimeComponent.sln"
18
- write-host - foreground blue " Restore nugets...END`n "
19
- }
20
-
21
12
function Remove-ArtifactsDir {
22
13
write-host - foreground blue " Clean up...`n "
23
14
rm $artifactsDir - Recurse - ErrorAction Ignore
@@ -47,7 +38,9 @@ function Start-Build([boolean] $skipUWP = $false) {
47
38
else
48
39
{
49
40
# dontnet CLI does not support WindowsRuntimeComponent project type yet
41
+ # msbuild does not auto-restore nugets for this project type
50
42
write-host - foreground yellow " WindowsRuntimeComponent project not yet supported by dotnet CLI, using MSBuild15 instead"
43
+ & " $msbuild " " $root \UnitsNet.WindowsRuntimeComponent.sln" / verbosity:minimal / p:Configuration= Release / t:restore
51
44
& " $msbuild " " $root \UnitsNet.WindowsRuntimeComponent.sln" / verbosity:minimal / p:Configuration= Release
52
45
if ($lastexitcode -ne 0 ) { exit 1 }
53
46
}
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import-module $PSScriptRoot\build-functions.psm1
28
28
29
29
try {
30
30
Remove-ArtifactsDir
31
- Start-NugetRestore
32
31
Update-GeneratedCode
33
32
Start-Build $skipUWP
34
33
Start-Tests
You can’t perform that action at this time.
0 commit comments