Skip to content

Commit d1f0b3e

Browse files
Better support for nuget (#26)
1 parent ed8ddcb commit d1f0b3e

File tree

2 files changed

+52
-11
lines changed

2 files changed

+52
-11
lines changed

OnixLabs.Core/OnixLabs.Core.csproj

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,36 @@
1515
<PackageVersion>6.0.0</PackageVersion>
1616
</PropertyGroup>
1717

18-
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
19-
<Optimize>true</Optimize>
20-
<DocumentationFile>bin\Debug\net5.0\OnixLabs.Core.xml</DocumentationFile>
18+
<PropertyGroup>
19+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
20+
<DebugType>embedded</DebugType>
21+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
22+
<IncludeSymbols>true</IncludeSymbols>
23+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
24+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
25+
<PackageProjectUrl>https://github.com/onix-labs/onixlabs-dotnet</PackageProjectUrl>
26+
<PackageReadmeFile>README.md</PackageReadmeFile>
27+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
28+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
29+
<RepositoryType>git</RepositoryType>
30+
<RepositoryUrl>https://github.com/onix-labs/onixlabs-dotnet</RepositoryUrl>
2131
</PropertyGroup>
2232

23-
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
24-
<DocumentationFile>bin\Release\net5.0\OnixLabs.Core.xml</DocumentationFile>
25-
<DebugSymbols>true</DebugSymbols>
33+
<PropertyGroup Condition="'$(CI)' == 'true'">
34+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2635
</PropertyGroup>
2736

37+
<ItemGroup>
38+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
39+
<PrivateAssets>all</PrivateAssets>
40+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
41+
</PackageReference>
42+
</ItemGroup>
43+
44+
<ItemGroup>
45+
<None Include="..\README.md" Pack="true" PackagePath="\" />
46+
</ItemGroup>
47+
2848
<ItemGroup>
2949
<Using Include="OnixLabs.Core.Preconditions" Static="True" />
3050
<Using Include="OnixLabs.Core.Collections.Collection" Static="True" />

OnixLabs.Security.Cryptography/OnixLabs.Security.Cryptography.csproj

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,36 @@
1515
<LangVersion>11</LangVersion>
1616
</PropertyGroup>
1717

18-
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
19-
<DocumentationFile>bin\Debug\net5.0\OnixLabs.Security.Cryptography.xml</DocumentationFile>
18+
<PropertyGroup>
19+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
20+
<DebugType>embedded</DebugType>
21+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
22+
<IncludeSymbols>true</IncludeSymbols>
23+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
24+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
25+
<PackageProjectUrl>https://github.com/onix-labs/onixlabs-dotnet</PackageProjectUrl>
26+
<PackageReadmeFile>README.md</PackageReadmeFile>
27+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
28+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
29+
<RepositoryType>git</RepositoryType>
30+
<RepositoryUrl>https://github.com/onix-labs/onixlabs-dotnet</RepositoryUrl>
2031
</PropertyGroup>
2132

22-
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
23-
<DocumentationFile>bin\Release\net5.0\OnixLabs.Security.Cryptography.xml</DocumentationFile>
24-
<DebugSymbols>true</DebugSymbols>
33+
<PropertyGroup Condition="'$(CI)' == 'true'">
34+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2535
</PropertyGroup>
2636

37+
<ItemGroup>
38+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
39+
<PrivateAssets>all</PrivateAssets>
40+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
41+
</PackageReference>
42+
</ItemGroup>
43+
44+
<ItemGroup>
45+
<None Include="..\README.md" Pack="true" PackagePath="\" />
46+
</ItemGroup>
47+
2748
<ItemGroup>
2849
<ProjectReference Include="..\OnixLabs.Core\OnixLabs.Core.csproj"/>
2950
<Using Include="OnixLabs.Core.Preconditions" Static="True"/>

0 commit comments

Comments
 (0)