mirror of
https://github.com/fbarresi/Sharp7.git
synced 2026-02-04 08:42:51 +00:00
adapted pack.ps1
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
$version = [System.Reflection.Assembly]::LoadFile("..\out\Release\Sharp7.dll").GetName().Version
|
$version = [System.Reflection.Assembly]::LoadFile("out\Release\Sharp7.dll").GetName().Version
|
||||||
$versionStr = "{0}.{1}.{2}" -f ($version.Major, $version.Minor, $version.Build)
|
$versionStr = "{0}.{1}.{2}" -f ($version.Major, $version.Minor, $version.Build)
|
||||||
|
|
||||||
Write-Host "Setting .nuspec version tag to $versionStr"
|
Write-Host "Setting .nuspec version tag to $versionStr"
|
||||||
@@ -6,6 +6,6 @@ Write-Host "Setting .nuspec version tag to $versionStr"
|
|||||||
$content = (Get-Content Sharp7.nuspec)
|
$content = (Get-Content Sharp7.nuspec)
|
||||||
$content = $content -replace '\$version\$',$versionStr
|
$content = $content -replace '\$version\$',$versionStr
|
||||||
|
|
||||||
$content | Out-File Sharp7.compiled.nuspec
|
$content | Out-File _nuspec\Sharp7.compiled.nuspec
|
||||||
|
|
||||||
& NuGet.exe pack Sharp7.compiled.nuspec
|
& _nuspec\NuGet.exe pack _nuspec\Sharp7.compiled.nuspec
|
||||||
Reference in New Issue
Block a user