Skip to content

Commit b0d7513

Browse files
committed
Updated script to check after msbuild now
1 parent 23e18fd commit b0d7513

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PackAndPush.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ param(
44
)
55

66
function Activate() {
7+
$msbuildPath = "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"
8+
$solutionPath = (Resolve-Path ".\src\Watts\Watts.csproj")
9+
& $msbuildPath /t:Build /m /nologo /verbosity:quiet /p:Configuration=Release $solutionPath
10+
711
$confirmation = Read-Host -Prompt "Are you sure you want to push v$NuspecVersion (y/n)"
812
if (!($confirmation.ToLower() -eq "y"))
913
{
1014
return
1115
}
1216

13-
$msbuildPath = "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"
14-
$solutionPath = (Resolve-Path ".\src\Watts\Watts.csproj")
15-
& $msbuildPath /t:Build /m /nologo /verbosity:quiet /p:Configuration=Release $solutionPath
16-
1717
nuget pack .\Watts.nuspec
1818
nuget push ".\WebApiToTypeScript.$NuspecVersion.nupkg" -Source https://www.nuget.org/api/v2/package
1919

0 commit comments

Comments
 (0)