File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -22,29 +22,13 @@ If (!(Test-Path $targetNugetExe))
22
22
23
23
Write-Host " NuGet.exe not found - downloading latest from $sourceNugetExe "
24
24
25
- $sourceNugetExe = " https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
26
-
27
25
Invoke-WebRequest $sourceNugetExe - OutFile $targetNugetExe
28
26
}
29
27
30
28
$versionStr = (Get-Content $packageVersionFile )
31
29
32
- Write-Host " Setting .nuspec version tag to $versionStr "
33
-
34
- $compiledNuspec = " $root \nuget\compiled.nuspec"
35
-
36
30
# Create new packages for any nuspec files that exist in this directory.
37
31
Foreach ($nuspec in $ (Get-Item $packageRoot \* .nuspec))
38
32
{
39
- $content = (Get-Content $nuspec )
40
- $content = $content -replace ' \$version\$' , $versionStr
41
- $content | Out-File $compiledNuspec
42
-
43
- & $targetNugetExe pack $compiledNuspec - outputdirectory $packageArtifacts
44
- }
45
-
46
- # Delete compiled temporary nuspec.
47
- If (Test-Path $compiledNuspec )
48
- {
49
- Remove-Item $compiledNuspec
33
+ & $targetNugetExe pack $nuspec - outputdirectory $packageArtifacts - properties version= $versionStr
50
34
}
You can’t perform that action at this time.
0 commit comments