Skip to content

Commit

Permalink
feature: configure project with nuget properties
Browse files Browse the repository at this point in the history
  • Loading branch information
asser-dk committed Jan 26, 2024
1 parent a4d208d commit d8eb642
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions src/OneOf.Extensions.Blazor/OneOf.Extensions.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,52 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<OutputType>Library</OutputType>

<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
<Title>OneOf.Extensions.Blazor</Title>
<Authors>fenris.io</Authors>
<Description>
A collection of Blazor components for dealing with OneOf types in your Blazor project.

Instead of writing a switch statement to handle the different cases of a OneOf type, you can use these components to render the correct component for the case.

Example:

&lt;OneOfSwitch2 Value="myOneOfWithTwoTypeParameters"&gt;
&lt;T0Template&gt;
&lt;p&gt;I am of type T0 and my value is @context!.&lt;/p&gt;
&lt;/T0Template&gt;
&lt;T1Template&gt;
&lt;p&gt;I am of type T1 and my value is @context!.&lt;/p&gt;
&lt;/T1Template&gt;
&lt;/OneOfSwitch2&gt;
</Description>
<PackageProjectUrl>https://github.com/fenrisdotio/OneOf.Extensions.Blazor</PackageProjectUrl>
<PackageTags>oneof extensions blazor components switch</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageReleaseNotes>https://github.com/fenrisdotio/OneOf.Extensions.Blazor/blob/main/LICENSE.txt</PackageReleaseNotes>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.1" />
<PackageReference Include="OneOf" Version="3.0.263" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>

<ItemGroup>
<None Include="../../README.md" Pack="true" PackagePath="/" />
<None Include="../../LICENSE.txt" Pack="true" PackagePath="/" />
</ItemGroup>

</Project>

0 comments on commit d8eb642

Please sign in to comment.