Skip to content

Commit e6ab4dd

Browse files
added .net framework and standard to targets
1 parent 2f1f06d commit e6ab4dd

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

CodiceFiscale/CodiceFiscale.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;netstandard2.0;net472</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7+
<LangVersion>latest</LangVersion>
78
</PropertyGroup>
89

910
<PropertyGroup>
@@ -19,6 +20,11 @@
1920
<RepositoryUrl>https://github.com/lorenzomaiuri-dev/CodiceFiscale</RepositoryUrl>
2021
</PropertyGroup>
2122

23+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net472'">
24+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
25+
</ItemGroup>
26+
27+
2228

2329
<ItemGroup>
2430
<None Update="data/countries.json" Pack="true" PackagePath="contentFiles\any\any;content">

CodiceFiscaleTest/CodiceFiscaleTest.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net472</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7-
7+
<LangVersion>latest</LangVersion>
88
<IsPackable>false</IsPackable>
99
<IsTestProject>true</IsTestProject>
1010
</PropertyGroup>

0 commit comments

Comments
 (0)