Skip to content

Commit c3dcdcf

Browse files
committed
added the update.ps1 to help copy binaries and update version number in .nuspec file.
1 parent dcfcce1 commit c3dcdcf

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

Release/nuget/readme.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ Replace the "C:\Program Files (x86)\Outercurve Foundation\Modules\CoApp\etc\Pivo
3030

3131
-----------------------------------------------------
3232
Manually generate NuGet
33-
1. Copy the Casablanca\Binaries to \Casablanca\Release\nuget\Binaries.
34-
2. Copy the \Casablanca\Release\include to \Casablanca\Release\nuget\include.
33+
1. Run the update.ps1 to copy the binaries and update the cpprestsdk.nuspec version number. (i.e. update.ps1 -OldVer 2_2 -NewVer 2_3)
34+
2. Update the cpprestsdk.nuspec metadata to correct version description. (i.e. change the "<version>2.2.0</version>" to "<version>2.3.0</version>")
3535
3. Running rename_stripped_pdbs.ps1 script to replace full symbols with stripped ones.
36-
4. Update the init.ps1 to correct version. (e.g. change cpprest2_1.natvis to cpprest2_2.natvis).
37-
5. Update the cpprestsdk.nuspec with the correct version number.
38-
6. Update the cpprestsdk.targets with the correct version number.
36+
4. Update the init.ps1 to correct version. (e.g. change cpprest2_2.natvis to cpprest2_3.natvis).
37+
6. Update the cpprestsdk.targets with the correct version number. (change the "<CppRestSDKVersionMinor>2</CppRestSDKVersionMinor>" to "<CppRestSDKVersionMinor>3</CppRestSDKVersionMinor>")
3938
7. Download the Nuget command utility, run the command "nuget.exe pack" under the directory where this cpprestsdk.nuspec created.

Release/nuget/update.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Param(
2+
[string]$OldVer,
3+
[string]$NewVer
4+
)
5+
6+
Write-Host "Copying Binaries folder"
7+
Get-Item ..\..\Binaries\ | Copy-Item -Destination .\Binaries -rescure
8+
Get-Item ..\include\ | Copy-Item -Destination .\include -rescure
9+
10+
Write-Host "Updating the cpprestsdk.nuspec version number"
11+
(Get-Content .\cpprestsdk.nuspec) | ForEach-Object {$_ -replace $OldVer, $NewVer} | Set-Content .\cpprestsdk.nuspec

0 commit comments

Comments
 (0)