Skip to content

Commit 0399392

Browse files
Added .net48 support
1 parent 9568c91 commit 0399392

File tree

6 files changed

+56
-56
lines changed

6 files changed

+56
-56
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![Nuget](https://img.shields.io/nuget/dt/StringyEnums) <img alt="GitHub issues" src="https://img.shields.io/github/issues-raw/TwentyFourMinutes/StringyEnums?style=flat-square"> <img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/TwentyFourMinutes/StringyEnums?include_prereleases&style=flat-square"> ![GitHub](https://img.shields.io/github/license/TwentyFourMinutes/StringyEnums?style=flat-square)
44

5-
Provides a slim and fast way for mapping enums to strings and vice versa in C#. StringyEnums targets .Net Standard so it's available to you for .Net Core and .Net Framework.
5+
Provides a slim and fast way for mapping enums to strings and vice versa in C#. StringyEnums targets `.Net Standard 2.1`, `.Net Core 3.1` and `.Net Framework 4.8` so it's available to you on all platforms.
66

77
## About
88

src/StringyEnums/StringyEnums.Shared/StringyEnums.Shared.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFrameworks>netcoreapp3.1;net48;</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
3+
<PropertyGroup>
4+
<TargetFrameworks>netcoreapp3.1;net48;</TargetFrameworks>
55

6-
<IsPackable>false</IsPackable>
7-
</PropertyGroup>
6+
<IsPackable>false</IsPackable>
7+
</PropertyGroup>
88

9-
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0-preview-20200102-01" />
11-
<PackageReference Include="xunit" Version="2.4.1" />
12-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
13-
<PrivateAssets>all</PrivateAssets>
14-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15-
</PackageReference>
16-
<PackageReference Include="coverlet.collector" Version="1.2.0">
17-
<PrivateAssets>all</PrivateAssets>
18-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
19-
</PackageReference>
20-
</ItemGroup>
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
11+
<PackageReference Include="xunit" Version="2.4.1" />
12+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
13+
<PrivateAssets>all</PrivateAssets>
14+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15+
</PackageReference>
16+
<PackageReference Include="coverlet.collector" Version="1.2.0">
17+
<PrivateAssets>all</PrivateAssets>
18+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
19+
</PackageReference>
20+
</ItemGroup>
2121

22-
<ItemGroup>
23-
<ProjectReference Include="..\StringyEnums.Shared\StringyEnums.Shared.csproj" />
24-
<ProjectReference Include="..\StringyEnums\StringyEnums.csproj" />
25-
</ItemGroup>
22+
<ItemGroup>
23+
<ProjectReference Include="..\StringyEnums.Shared\StringyEnums.Shared.csproj" />
24+
<ProjectReference Include="..\StringyEnums\StringyEnums.csproj" />
25+
</ItemGroup>
2626

2727
</Project>

src/StringyEnums/StringyEnums/CacheInitializer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace StringyEnums
99
{
1010
/// <summary>
11-
/// Handles the initializing of a Cache
11+
/// Handles the initializing of a Cache
1212
/// </summary>
1313
public class CacheInitializer
1414
{
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.1;netcoreapp3.1</TargetFrameworks>
5-
<LangVersion>8</LangVersion>
6-
<Nullable>enable</Nullable>
7-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
8-
<Version>1.0.0.3</Version>
9-
<Authors>Twenty</Authors>
10-
<Company>Twenty</Company>
11-
<Product>StringyEnums</Product>
12-
<Description>Provides a slim and fast way for mapping enums to strings.</Description>
13-
<Copyright>Copyright ©2020 Twenty</Copyright>
14-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
15-
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
16-
<RepositoryUrl>https://github.com/TwentyFourMinutes/StringyEnums</RepositoryUrl>
17-
<PackageTags>enum enums stringmatching string stringenums</PackageTags>
18-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
19-
<Title>StringyEnums</Title>
20-
</PropertyGroup>
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard2.1;netcoreapp3.1;net48;</TargetFrameworks>
5+
<LangVersion>8</LangVersion>
6+
<Nullable>enable</Nullable>
7+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
8+
<Version>1.1.0</Version>
9+
<Authors>Twenty</Authors>
10+
<Company>Twenty</Company>
11+
<Product>StringyEnums</Product>
12+
<Description>Provides a slim and fast way for mapping enums to strings.</Description>
13+
<Copyright>Copyright ©2020 Twenty</Copyright>
14+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
15+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
16+
<RepositoryUrl>https://github.com/TwentyFourMinutes/StringyEnums</RepositoryUrl>
17+
<PackageTags>enum enums stringmatching string stringenums</PackageTags>
18+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
19+
<Title>StringyEnums</Title>
20+
</PropertyGroup>
2121

22-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
23-
<DocumentationFile>StringyEnums.xml</DocumentationFile>
24-
</PropertyGroup>
22+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
23+
<DocumentationFile>StringyEnums.xml</DocumentationFile>
24+
</PropertyGroup>
2525

26-
<ItemGroup>
27-
<None Include="..\..\..\LICENSE">
28-
<Pack>True</Pack>
29-
<PackagePath></PackagePath>
30-
</None>
31-
</ItemGroup>
26+
<ItemGroup>
27+
<None Include="..\..\..\LICENSE">
28+
<Pack>True</Pack>
29+
<PackagePath></PackagePath>
30+
</None>
31+
</ItemGroup>
3232

33-
<ItemGroup>
34-
<PackageReference Include="BidirectionalDict" Version="1.0.0.4" />
35-
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
36-
</ItemGroup>
33+
<ItemGroup>
34+
<PackageReference Include="BidirectionalDict" Version="1.1.0" />
35+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
36+
</ItemGroup>
3737

3838
</Project>

src/StringyEnums/StringyEnums/StringyEnums.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)