Skip to content

Commit

Permalink
Cleanup build files
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Jul 22, 2023
1 parent 84cf7ee commit 32714b8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 54 deletions.
31 changes: 6 additions & 25 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,39 +1,20 @@
<Project>

<!-- build -->
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<LangVersion>preview</LangVersion>
<NoWarn>$(NoWarn);CS1591</NoWarn>

<Nullable>enable</Nullable>
<TargetFramework>net8.0</TargetFramework>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<!-- build and versioning setup -->
<ManagePackageVersionsCentrally>True</ManagePackageVersionsCentrally>
<UseArtifactsOutput>true</UseArtifactsOutput>
<NuGetAudit>true</NuGetAudit>

<UseArtifactsOutput>true</UseArtifactsOutput>
<!-- sourcelink -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<!-- nuget -->
<PropertyGroup>
<Authors>
akiraveliara, dotnet/corefxlab SlimDictionary contributors
</Authors>
<Description>A collection of collections and related types of varying usefulness.</Description>
<Company>DSharpPlus Contributors</Company>
<PackageProjectUrl>https://github.com/DSharpPlus/Bundles</PackageProjectUrl>
<RepositoryUrl>https://github.com/DSharpPlus/Bundles</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageLicenseExpression>MPL</PackageLicenseExpression>
<PackageIcon>dsharpplus.png</PackageIcon>
<PackageIconUrl>https://raw.githubusercontent.com/DSharpPlus/DSharpPlus/master/logo/dsharpplus.png</PackageIconUrl>
</PropertyGroup>

</Project>
28 changes: 22 additions & 6 deletions src/Bundles/Bundles.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Library</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsAotCompatible>true</IsAotCompatible>
<OutputType>Library</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsAotCompatible>true</IsAotCompatible>
</PropertyGroup>

</Project>
<PropertyGroup>
<Authors>Akiraveliara, dotnet/corefxlab SlimDictionary contributors</Authors>
<Company>DSharpPlus Contributors</Company>
<Description>A collection of collections and related types of varying usefulness.</Description>
<PackageIcon>logo.png</PackageIcon>
<PackageId>Bundles</PackageId>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageProjectUrl>https://github.com/DSharpPlus/Bundles</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/DSharpPlus/Bundles</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="../../LICENSE" Pack="true" PackagePath=""/>
<EmbeddedResource Include="../../README.md" Pack="true" PackagePath=""/>
<EmbeddedResource Include="../../res/logo.png" Pack="true" PackagePath=""/>
</ItemGroup>
</Project>
33 changes: 10 additions & 23 deletions tests/Bundles.Tests/Bundles.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Nullable>enable</Nullable>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Net.Http" />
<PackageReference Include="System.Text.RegularExpressions" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Bundles\Bundles.csproj" />
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="System.Net.Http"/>
<PackageReference Include="System.Text.RegularExpressions"/>
<PackageReference Include="coverlet.collector" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" PrivateAssets="all"/>
<PackageReference Include="xunit"/>
<PackageReference Include="xunit.runner.visualstudio" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" PrivateAssets="all"/>
<ProjectReference Include="../../src/Bundles/Bundles.csproj"/>
</ItemGroup>

</Project>
</Project>

0 comments on commit 32714b8

Please sign in to comment.