-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-4839: [C#] Add NuGet package metadata and instructions.
This change adds the necessary changes for creating the `Apache.Arrow` nuget package. 1. I've updated the `.csproj` with what I think is the correct package metadata. Please take a look and give any feedback on what I got wrong. 2. I've added instructions to the README on how to build the NuGet package. By default, this will produce a `-preview` version of the package. You need to explicitly opt into creating a "stable" version by passing in `-p:VersionSuffix=''`. 3. I've enabled strong naming on the library, which is a recommendation according to the [.NET Open-source library guidance](https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/strong-naming). - Note that "strong naming" isn't a security feature - it is just about creating a unique identity for the library. /cc @stephentoub @ericstj @pgovind @chutchinson @wesm Author: Eric Erhardt <[email protected]> Closes #3891 from eerhardt/NuGetPackage and squashes the following commits: 8c0f680 <Eric Erhardt> PR feedback 89f630b <Eric Erhardt> Remove pack call from CI b3c6ab8 <Eric Erhardt> Respond to PR feedback. f4bb193 <Eric Erhardt> fix up prepare script to escape correctly 1566f40 <Eric Erhardt> PR feedback c7a9d8d <Eric Erhardt> Enable strong naming on the Apache.Arrow C# library. 5c31e1d <Eric Erhardt> ARROW-4839: Add NuGet package metadata and instructions.
- Loading branch information
Showing
10 changed files
with
91 additions
and
28 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<Project> | ||
|
||
<!-- Common repo directories --> | ||
<PropertyGroup> | ||
<RepoRoot>$(MSBuildThisFileDirectory)../</RepoRoot> | ||
<CSharpDir>$(MSBuildThisFileDirectory)</CSharpDir> | ||
<BaseOutputPath>$(CSharpDir)/artifacts/$(MSBuildProjectName)</BaseOutputPath> | ||
</PropertyGroup> | ||
|
||
<!-- AssemblyInfo properties --> | ||
<PropertyGroup> | ||
<Product>Apache Arrow library</Product> | ||
<Copyright>2018 Apache Software Foundation</Copyright> | ||
<Company>Apache</Company> | ||
<Version>0.13.0-SNAPSHOT</Version> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<LangVersion>7.2</LangVersion> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>$(CSharpDir)ApacheArrow.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<!-- NuGet properties --> | ||
<PropertyGroup> | ||
<Authors>Apache</Authors> | ||
<PackageIconUrl>https://www.apache.org/images/feather.png</PackageIconUrl> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
<PackageProjectUrl>https://arrow.apache.org/</PackageProjectUrl> | ||
<PackageTags>apache arrow</PackageTags> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>https://github.com/apache/arrow</RepositoryUrl> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(IsPackable)' == 'true'"> | ||
<Content Include="$(RepoRoot)LICENSE.txt" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project> | ||
|
||
<Import Project="..\Directory.Build.props" /> | ||
|
||
<PropertyGroup> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters