Skip to content

Commit 5041c47

Browse files
committed
Updating nuget package generation files with some fixes.
1 parent fef0395 commit 5041c47

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

Release/nuget/cpprestsdk.nuspec

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@
1111
<iconUrl>https://download-codeplex.sec.s-msft.com/Download?ProjectName=casablanca&amp;DownloadId=630102&amp;Build=20425</iconUrl>
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1313
<summary>"The C++ REST SDK is a cross-platform, modern, and asynchronous library that enables developers to access and author connected applications"</summary>
14-
<description>"This library is a Microsoft effort to support cloud-based client-server communication in native code using a modern asynchronous C++ API design. The C++ REST SDK (codename "Casablanca") is a project to start exploring how to best support C++ developers who want to take advantage of the radical shift in software architecture that cloud computing represents."</description>
14+
<description>"This library is a Microsoft effort to support cloud-based client-server communication in native code using a modern asynchronous C++ API design. The C++ REST SDK is a project to start exploring how to best support C++ developers who want to take advantage of the radical shift in software architecture that cloud computing represents."</description>
1515
<releaseNotes>"Release of C++ Rest SDK 2.3.0 libraries."</releaseNotes>
1616
<copyright>Copyright 2014</copyright>
1717
<tags>REST, native, C++, JSON, Casablanca, Http, Uri, WebSockets</tags>
18+
19+
<!-- OpenSSL dependency only necessary for Windows Desktop, but unless our package is split into smaller components it is required for all. -->
20+
<dependencies>
21+
<dependency id="openssl" version="1.0.1.25" />
22+
</dependencies>
1823
</metadata>
1924
<files>
2025
<!-- Include header files-->
@@ -24,7 +29,7 @@
2429
<file src="cpprest.natvis" target="\tools\cpprest.natvis" />
2530

2631
<!-- Including license for WebSocket++ -->
27-
<file src="..\libs\websocketpp\COPYING" target="\license\websocketpp" />
32+
<file src="..\libs\websocketpp\COPYING" target="\license\websocketpp\COPYING" />
2833

2934
<!-- Debug -->
3035
<!-- Win32 v140 -->
@@ -145,9 +150,9 @@
145150
<file src="Binaries\Win32\Release\cpprest120_app_2_3.lib" target="\build\native\lib\Win32\v120\Release\WinRT\cpprest120_app_2_3.lib" />
146151

147152
<!-- Win32 v120_wp81 -->
148-
<file src="Binaries\Win32\Release\casablanca120.wp81\cpprest120_wp81_2_3.dll" target="\build\native\bin\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_2_3.dll" />
149-
<file src="Binaries\Win32\Release\casablanca120.wp81\cpprest120_wp81_2_3.pdb" target="\build\native\bin\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_2_3.pdb" />
150-
<file src="Binaries\Win32\Release\casablanca120.wp81\cpprest120_wp81_2_3.lib" target="\build\native\lib\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_2_3.lib" />
153+
<file src="Binaries\Win32\Release\cpprest120_wp81_2_3.dll" target="\build\native\bin\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_2_3.dll" />
154+
<file src="Binaries\Win32\Release\cpprest120_wp81_2_3.pdb" target="\build\native\bin\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_2_3.pdb" />
155+
<file src="Binaries\Win32\Release\cpprest120_wp81_2_3.lib" target="\build\native\lib\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_2_3.lib" />
151156

152157
<!-- Win32 v120 Phone Silverlight 8.1 -->
153158
<file src="Binaries\Win32\Release\cpprest120_wps81_2_3.dll" target="\build\native\bin\Win32\v120\Release\Phone8Silverlight\cpprest120_wps81_2_3.dll" />

Release/nuget/cpprestsdk.targets

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Linkages-cpprestsdk Condition="'$(Linkages-cpprestsdk)' == ''">dynamic</Linkages-cpprestsdk>
55
<CallingConventions-cpprestsdk Condition="'$(CallingConventions-cpprestsdk)' == ''">cdecl</CallingConventions-cpprestsdk>
66
<CppRestSDKVersionMajor>2</CppRestSDKVersionMajor>
7-
<CppRestSDKVersionMinor>2</CppRestSDKVersionMinor>
7+
<CppRestSDKVersionMinor>3</CppRestSDKVersionMinor>
88
<CppRestSDKVersionRevision>0</CppRestSDKVersionRevision>
99
<CppRestSDKVersionFileSuffix>$(CppRestSDKVersionMajor)_$(CppRestSDKVersionMinor)</CppRestSDKVersionFileSuffix>
1010
</PropertyGroup>
@@ -57,7 +57,7 @@
5757
<Link>
5858
<AdditionalDependencies>$(MSBuildThisFileDirectory)lib\Win32\v140\Release\Desktop\cpprest140_$(CppRestSDKVersionFileSuffix).lib;%(AdditionalDependencies)</AdditionalDependencies>
5959
</Link>
60-
</ItemDefinitionGrou
60+
</ItemDefinitionGroup>
6161
<ItemDefinitionGroup Label="Win32 and v120_wp81 and Release and Phone8" Condition="'$(Platform.ToLower())' == 'win32' And '$(PlatformToolset.ToLower())' == 'v120_wp81' And ( $(Configuration.ToLower().IndexOf('debug')) == -1 )">
6262
<Link>
6363
<AdditionalDependencies>$(MSBuildThisFileDirectory)lib\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_$(CppRestSDKVersionFileSuffix).lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -417,7 +417,7 @@
417417

418418
<!-- Include Websocket++ COPYING license if contained in binaries -->
419419
<ItemGroup Label="Desktop x64 and Debug" Condition="('$(Platform.ToLower())' == 'x64' Or '$(Platform.ToLower())' == 'win32') And ( !('$(PlatformToolset.ToLower())' == 'windowskernelmodedriver8.0') And !('$(PlatformToolset.ToLower())' == 'windowsapplicationfordrivers8.0') And !('$(PlatformToolset.ToLower())' == 'windowsusermodedriver8.0') And !('$(AppContainerApplication.ToLower())' == 'true') )">
420-
<CopyToOutput Include="\license\websocketpp\COPYING" />
420+
<CopyToOutput Include="$(MSBuildThisFileDirectory)..\..\license\websocketpp\COPYING" />
421421
</ItemGroup>
422422

423423
<ItemGroup Label="x64 and v120_xp and Debug and Desktop" Condition="'$(Platform.ToLower())' == 'x64' And '$(PlatformToolset.ToLower())' == 'v120_xp' And ( $(Configuration.ToLower().IndexOf('debug')) &gt; -1 ) And ( !('$(PlatformToolset.ToLower())' == 'windowskernelmodedriver8.0') And !('$(PlatformToolset.ToLower())' == 'windowsapplicationfordrivers8.0') And !('$(PlatformToolset.ToLower())' == 'windowsusermodedriver8.0') And !('$(AppContainerApplication.ToLower())' == 'true') )">
@@ -489,7 +489,7 @@
489489
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_$(CppRestSDKVersionFileSuffix).pdb" />
490490
<ReferenceCopyLocalPaths Include="$(MSBuildThisFileDirectory)bin\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_$(CppRestSDKVersionFileSuffix).dll" />
491491
</ItemGroup>
492-
<ItemGroup Label="Win32 and v120 and Release and Phone8 Silverlight" Condition="'$(Platform.ToLower())' == 'win32' And '$(PlatformToolset.ToLower())' == 'v120' And ( $(Configuration.ToLower().IndexOf('debug')) == -1 ) And '$(ApplicationType)' == 'Windows Phone Silverlight'"">
492+
<ItemGroup Label="Win32 and v120 and Release and Phone8 Silverlight" Condition="'$(Platform.ToLower())' == 'win32' And '$(PlatformToolset.ToLower())' == 'v120' And ( $(Configuration.ToLower().IndexOf('debug')) == -1 ) And '$(ApplicationType)' == 'Windows Phone Silverlight'">
493493
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\Win32\v120\Release\Phone8Silverlight\cpprest120_wps81_$(CppRestSDKVersionFileSuffix).dll" />
494494
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\Win32\v120\Release\Phone8Silverlight\cpprest120_wps81_$(CppRestSDKVersionFileSuffix).pdb" />
495495
<ReferenceCopyLocalPaths Include="$(MSBuildThisFileDirectory)bin\Win32\v120_wp81\Release\Phone8\cpprest120_wp81_$(CppRestSDKVersionFileSuffix).dll" />
@@ -613,7 +613,7 @@
613613
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\Win32\v120_wp81\Debug\Phone8\cpprest120d_wp81_$(CppRestSDKVersionFileSuffix).pdb" />
614614
<ReferenceCopyLocalPaths Include="$(MSBuildThisFileDirectory)bin\Win32\v120_wp81\Debug\Phone8\cpprest120d_wp81_$(CppRestSDKVersionFileSuffix).dll" />
615615
</ItemGroup>
616-
<ItemGroup Label="Win32 and v120 and Debug and Phone8 Silverlight" Condition="'$(Platform.ToLower())' == 'win32' And '$(PlatformToolset.ToLower())' == 'v120' And ( $(Configuration.ToLower().IndexOf('debug')) &gt; -1 ) And '$(ApplicationType)' == 'Windows Phone Silverlight'"">
616+
<ItemGroup Label="Win32 and v120 and Debug and Phone8 Silverlight" Condition="'$(Platform.ToLower())' == 'win32' And '$(PlatformToolset.ToLower())' == 'v120' And ( $(Configuration.ToLower().IndexOf('debug')) &gt; -1 ) And '$(ApplicationType)' == 'Windows Phone Silverlight'">
617617
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\Win32\v120\Debug\Phone8Silverlight\cpprest120d_wps81_$(CppRestSDKVersionFileSuffix).dll" />
618618
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\Win32\v120\Debug\Phone8Silverlight\cpprest120d_wps81_$(CppRestSDKVersionFileSuffix).pdb" />
619619
<ReferenceCopyLocalPaths Include="$(MSBuildThisFileDirectory)bin\Win32\v120\Debug\Phone8Silverlight\cpprest120d_wps81_$(CppRestSDKVersionFileSuffix).dll" />
@@ -655,7 +655,7 @@
655655
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\ARM\v120_wp81\Release\Phone8\cpprest120_wp81_$(CppRestSDKVersionFileSuffix).pdb" />
656656
<ReferenceCopyLocalPaths Include="$(MSBuildThisFileDirectory)bin\ARM\v120_wp81\Release\Phone8\cpprest120_wp81_$(CppRestSDKVersionFileSuffix).dll" />
657657
</ItemGroup>
658-
<ItemGroup Label="ARM and v120 and Release and Phone8 Silverlight" Condition="'$(Platform.ToLower())' == 'arm' And '$(PlatformToolset.ToLower())' == 'v120' And ( $(Configuration.ToLower().IndexOf('debug')) == -1 ) And '$(ApplicationType)' == 'Windows Phone Silverlight'"">
658+
<ItemGroup Label="ARM and v120 and Release and Phone8 Silverlight" Condition="'$(Platform.ToLower())' == 'arm' And '$(PlatformToolset.ToLower())' == 'v120' And ( $(Configuration.ToLower().IndexOf('debug')) == -1 ) And '$(ApplicationType)' == 'Windows Phone Silverlight'">
659659
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\ARM\v120\Release\Phone8Silverlight\cpprest120_wps81_$(CppRestSDKVersionFileSuffix).dll" />
660660
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\ARM\v120\Release\Phone8Silverlight\cpprest120_wps81_$(CppRestSDKVersionFileSuffix).pdb" />
661661
<ReferenceCopyLocalPaths Include="$(MSBuildThisFileDirectory)bin\ARM\v120\Release\Phone8Silverlight\cpprest120_wps81_$(CppRestSDKVersionFileSuffix).dll" />
@@ -697,7 +697,7 @@
697697
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\ARM\v120_wp81\Debug\Phone8\cpprest120d_wp81_$(CppRestSDKVersionFileSuffix).pdb" />
698698
<ReferenceCopyLocalPaths Include="$(MSBuildThisFileDirectory)bin\ARM\v120_wp81\Debug\Phone8\cpprest120d_wp81_$(CppRestSDKVersionFileSuffix).dll" />
699699
</ItemGroup>
700-
<ItemGroup Label="ARM and v120 and Debug and Phone8 Silverlight" Condition="'$(Platform.ToLower())' == 'arm' And '$(PlatformToolset.ToLower())' == 'v120' And ( $(Configuration.ToLower().IndexOf('debug')) &gt; -1 ) And '$(ApplicationType)' == 'Windows Phone Silverlight'"">
700+
<ItemGroup Label="ARM and v120 and Debug and Phone8 Silverlight" Condition="'$(Platform.ToLower())' == 'arm' And '$(PlatformToolset.ToLower())' == 'v120' And ( $(Configuration.ToLower().IndexOf('debug')) &gt; -1 ) And '$(ApplicationType)' == 'Windows Phone Silverlight'">
701701
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\ARM\v120\Debug\Phone8Silverlight\cpprest120d_wps81_$(CppRestSDKVersionFileSuffix).dll" />
702702
<CopyToOutput Include="$(MSBuildThisFileDirectory)bin\ARM\v120\Debug\Phone8Silverlight\cpprest120d_wps81_$(CppRestSDKVersionFileSuffix).pdb" />
703703
<ReferenceCopyLocalPaths Include="$(MSBuildThisFileDirectory)bin\ARM\v120\Debug\Phone8Silverlight\cpprest120d_wps81_$(CppRestSDKVersionFileSuffix).dll" />

Release/nuget/update.ps1

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

66
Write-Host "Copying Binaries folder"
7-
Get-Item ..\..\Binaries\ | Copy-Item -Destination .\Binaries -rescure
8-
Get-Item ..\include\ | Copy-Item -Destination .\include -rescure
7+
Get-Item ..\..\Binaries\ | Copy-Item -Destination .\Binaries -recurse
8+
Get-Item ..\include\ | Copy-Item -Destination .\include -recurse
99

1010
Write-Host "Updating the cpprestsdk.nuspec version number"
1111
(Get-Content .\cpprestsdk.nuspec) | ForEach-Object {$_ -replace $OldVer, $NewVer} | Set-Content .\cpprestsdk.nuspec

0 commit comments

Comments
 (0)