Some prep work for NuGet package

This commit is contained in:
Pieter-Jan Briers
2022-03-27 17:54:40 +02:00
parent 60d2e40906
commit 8643c10779
4 changed files with 29 additions and 1 deletions

View File

@@ -4,6 +4,6 @@ root = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
insert_final_newline = true insert_final_newline = true
[*.csproj] [*.{csproj,props}]
indent_style = space indent_style = space
indent_size = 2 indent_size = 2

21
Directory.build.props Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>Git</RepositoryType>
<RepositoryUrl>https://github.com/space-wizards/SpaceWizards.Sodium</RepositoryUrl>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
<Authors>Space Wizards</Authors>
</PropertyGroup>
<!--SourceLink stuff-->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>
</Project>

View File

@@ -5,6 +5,12 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PackageId>SpaceWizards.Sodium.Interop</PackageId>
<Version>1.0.18-beta1</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Native API binding for libsodium.</Description>
<NoWarn>CS1591</NoWarn>
<PackageTags>libsodium</PackageTags>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Files", "Solution
README.md = README.md README.md = README.md
LICENSE.txt = LICENSE.txt LICENSE.txt = LICENSE.txt
.editorconfig = .editorconfig .editorconfig = .editorconfig
Directory.build.props = Directory.build.props
EndProjectSection EndProjectSection
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpaceWizards.Sodium.Interop", "SpaceWizards.Sodium.Interop\SpaceWizards.Sodium.Interop.csproj", "{4565084B-3F40-44EA-B0B8-75DBFB9398EB}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpaceWizards.Sodium.Interop", "SpaceWizards.Sodium.Interop\SpaceWizards.Sodium.Interop.csproj", "{4565084B-3F40-44EA-B0B8-75DBFB9398EB}"