Skip to content

Commit b0e2962

Browse files
committed
Adding package_info.xml file for automated NuGet package generation.
1 parent b81c653 commit b0e2962

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

Release/src/build/common.vcxitems

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,9 @@
8787
<ItemGroup>
8888
<None Include="$(MSBuildThisFileDirectory)..\..\include\cpprest\details\http_constants.dat" />
8989
</ItemGroup>
90+
<ItemGroup>
91+
<Xml Include="$(MSBuildThisFileDirectory)package_info.xml">
92+
<SubType>Designer</SubType>
93+
</Xml>
94+
</ItemGroup>
9095
</Project>

Release/src/build/common.vcxitems.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,7 @@
212212
<Filter>Header Files\cpprest\details</Filter>
213213
</None>
214214
</ItemGroup>
215+
<ItemGroup>
216+
<Xml Include="$(MSBuildThisFileDirectory)package_info.xml" />
217+
</ItemGroup>
215218
</Project>

Release/src/build/package_info.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<package>
2+
<metadata>
3+
<base_id>cpprestsdk</base_id>
4+
<version>2.4.0</version>
5+
<title>C++ REST SDK</title>
6+
<authors>casablancacore</authors>
7+
<owners>Microsoft, Visual C++</owners>
8+
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
9+
<projectUrl>https://casablanca.codeplex.com/</projectUrl>
10+
<iconUrl>https://download-codeplex.sec.s-msft.com/Download?ProjectName=casablanca&amp;DownloadId=630102&amp;Build=20425</iconUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<summary>The C++ REST SDK is a cross-platform, modern, and asynchronous library that enables developers to access and author connected applications.</summary>
13+
<description>The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.</description>
14+
<releaseNotes>https://casablanca.codeplex.com/releases/view/146873</releaseNotes>
15+
<copyright>Copyright 2015</copyright>
16+
<tags>cpprestsdk, Casablanca, REST, JSON, HTTP, URI, WebSockets</tags>
17+
</metadata>
18+
<files>
19+
<file src="..\..\..\ThirdPartyNotices.txt" target="\license\ThirdPartyNotices.txt" />
20+
21+
<!-- Needed to install our debugger natvis -->
22+
<file src="..\..\nuget\init.ps1" target="\tools\init.ps1" />
23+
<file src="..\..\nuget\cpprest.natvis" target="\tools\cpprest.natvis" />
24+
</files>
25+
<msbuild_hook>
26+
<ItemDefinitionGroup>
27+
<ClCompile>
28+
<AdditionalOptions Condition="'$(PlatformToolset)'=='v140'">/d2notypeopt %(AdditionalOptions)</AdditionalOptions>
29+
</ClCompile>
30+
</ItemDefinitionGroup>
31+
</msbuild_hook>
32+
</package>

0 commit comments

Comments
 (0)