Skip to content

Commit

Permalink
add nuget information
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminAbt committed Apr 2, 2024
1 parent 19cf5ec commit 49cd4ba
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 17 deletions.
29 changes: 21 additions & 8 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,44 @@
StrongOf helps to implement primitives as a strong type that represents a domain object (e.g. UserId, EmailAddress, etc.). It is a simple class that wraps a value and provides a few helper methods to make it easier to work with.
In contrast to other approaches, StrongOf is above all simple and performant - and not over-engineered.
</Description>
<DefaultLanguage>en-US</DefaultLanguage>
<NoPackageAnalysis>true</NoPackageAnalysis>
<DebugType>embedded</DebugType>
</PropertyGroup>

<!-- Assembly -->
<PropertyGroup>
<PropertyGroup Label="Env">
<IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject>
<IsBenchmarkProject>$(MsBuildProjectName.Contains('Benchmark'))</IsBenchmarkProject>
</PropertyGroup>

<PropertyGroup Label="Assembly">
<GlobalNamespacePrefix>StrongOf</GlobalNamespacePrefix>
<GlobalAssemblyNamePrefix>BenjaminAbt.StrongOf</GlobalAssemblyNamePrefix>
</PropertyGroup>

<!-- Project Defaults -->
<PropertyGroup>
<PropertyGroup Label="Project Defaults">
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
</PropertyGroup>

<!-- Package -->
<PropertyGroup>
<PropertyGroup Label="Package">
<IsPackable>false</IsPackable>
<PackageProjectUrl>https://github.com/BenjaminAbt/StrongOf</PackageProjectUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Description>Primitive Obsession with .NET</Description>
<MinClientVersion>2.12</MinClientVersion>
<PackageTags>Strong, StrongOf, DDD, Value Objects, Domain Driven Design</PackageTags>
<IsPackable>false</IsPackable>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<!-- C# -->
<PropertyGroup>
<PropertyGroup Label="C#">
<LangVersion>12.0</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(IsTestProject)' != 'true' AND '$(IsBenchmarkProject)' != 'true'">
<GenerateDocumentationFile Condition="'$(Configuration)' == 'Release'">true</GenerateDocumentationFile>
</PropertyGroup>
</Project>
3 changes: 1 addition & 2 deletions src/StrongOf.AspNetCore/StrongOf.AspNetCore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- Package -->
<PropertyGroup>
<PropertyGroup Label="Package">
<IsPackable>true</IsPackable>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- Package -->
<PropertyGroup>
<PropertyGroup Label="Package">
<IsPackable>true</IsPackable>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
Expand Down
5 changes: 2 additions & 3 deletions src/StrongOf.Json/StrongOf.Json.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- Package -->
<PropertyGroup>
<PropertyGroup Label="Package">
<IsPackable>true</IsPackable>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
Expand All @@ -17,6 +16,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\StrongOf\StrongOf.csproj" />
<ProjectReference Include="..\StrongOf\StrongOf.csproj" />
</ItemGroup>
</Project>
3 changes: 1 addition & 2 deletions src/StrongOf/StrongOf.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- Package -->
<PropertyGroup>
<PropertyGroup Label="Package">
<IsPackable>true</IsPackable>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
Expand Down

0 comments on commit 49cd4ba

Please sign in to comment.