Skip to content

Commit

Permalink
Add README to NuGet package (#3143)
Browse files Browse the repository at this point in the history
* Add README to NuGet package
  • Loading branch information
WanjohiSammy authored Dec 9, 2024
1 parent 6f5bc5e commit af53242
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Microsoft.OData.Client/Microsoft.OData.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<AssemblyName>Microsoft.OData.Client</AssemblyName>
<RootNamespace>Microsoft.OData.Client</RootNamespace>
<DocumentationFile>$(AssemblyName).xml</DocumentationFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<DefineConstants>$(DefineConstants);ODATA_CLIENT;SUPPRESS_PORTABLELIB_TARGETFRAMEWORK_ATTRIBUTE;DelaySignKeys</DefineConstants>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down Expand Up @@ -146,6 +147,10 @@
<Content Include="Microsoft.OData.Client.txt" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Shipped.txt" />
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Unshipped.txt" />
Expand Down
5 changes: 5 additions & 0 deletions src/Microsoft.OData.Core/Microsoft.OData.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<RootNamespace>Microsoft.OData.Core</RootNamespace>

<DocumentationFile>$(AssemblyName).xml</DocumentationFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<DefineConstants>$(DefineConstants);ODATA_CORE;SUPPRESS_PORTABLELIB_TARGETFRAMEWORK_ATTRIBUTE;DelaySignKeys</DefineConstants>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down Expand Up @@ -44,6 +45,10 @@
<None Remove="Parameterized.Microsoft.OData.Core.tt" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
<Compile Include="..\AssemblyInfo\AssemblyKeys.cs" Link="AssemblyKeys.cs" />
<Compile Include="..\PlatformHelper.cs" Link="PlatformHelper.cs" />
Expand Down
5 changes: 5 additions & 0 deletions src/Microsoft.OData.Edm/Microsoft.OData.Edm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<AssemblyName>Microsoft.OData.Edm</AssemblyName>
<RootNamespace>Microsoft.OData.Edm</RootNamespace>
<DocumentationFile>$(AssemblyName).xml</DocumentationFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<DefineConstants>$(DefineConstants);SUPPRESS_PORTABLELIB_TARGETFRAMEWORK_ATTRIBUTE</DefineConstants>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand All @@ -20,6 +21,10 @@
<None Remove="Microsoft.OData.Edm.xml" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Microsoft.OData.Edm.Tests" />
<InternalsVisibleTo Include="Microsoft.Test.OData.Tests.Client" />
Expand Down
5 changes: 5 additions & 0 deletions src/Microsoft.Spatial/Microsoft.Spatial.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>Microsoft.Spatial</RootNamespace>

<DocumentationFile>$(AssemblyName).xml</DocumentationFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<DefineConstants>TRACE;SPATIAL;SUPPRESS_PORTABLELIB_TARGETFRAMEWORK_ATTRIBUTE;DelaySignKeys</DefineConstants>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<IsPackable>true</IsPackable>
Expand All @@ -25,6 +26,10 @@
<None Remove="Parameterized.Microsoft.Spatial.tt" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
<Compile Include="..\AssemblyInfo\AssemblyKeys.cs" Link="AssemblyKeys.cs" />
<Compile Include="..\PlatformHelper.cs" Link="PlatformHelper.cs" />
Expand Down

0 comments on commit af53242

Please sign in to comment.