Skip to content

Commit 1a397a7

Browse files
committed
Switch to directly using dotnet commands instead of msbuild command.
1 parent 98f5402 commit 1a397a7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

build.ps1

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,8 @@ function Clean() {
2020
}
2121

2222
function Build() {
23-
function b($target, $check=$True) {
24-
dotnet msbuild /t:$target /p:Configuration=$Configuration /p:ContinuousIntegrationBuild=true "$baseDir\src\NETProvider.slnx" /v:m /m
25-
if ($check) {
26-
Check-ExitCode
27-
}
28-
}
29-
b 'Clean'
30-
# this sometimes fails on CI
31-
b 'Restore' $False
32-
b 'Restore'
33-
b 'Build'
23+
dotnet clean "$baseDir\src\NETProvider.slnx" -c $Configuration -v m
24+
dotnet build "$baseDir\src\NETProvider.slnx" -c $Configuration -p:ContinuousIntegrationBuild=true -v m
3425
}
3526

3627
function Versions() {

0 commit comments

Comments
 (0)