File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net8.0</ TargetFramework >
4+ <TargetFrameworks >net8.0;net9.0</ TargetFrameworks >
55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
77
88 <IsPackable >false</IsPackable >
99 <IsTestProject >true</IsTestProject >
1010 </PropertyGroup >
1111
12+ <!-- Dependencies (same version for all target frameworks) -->
1213 <ItemGroup >
13- <PackageReference Include =" FluentAssertions" Version =" 6.12.0 " />
14- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.6.0 " />
15- <PackageReference Include =" xunit" Version =" 2.4.2 " />
16- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4 .5" >
14+ <PackageReference Include =" FluentAssertions" Version =" 8.7.1 " />
15+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.11.1 " />
16+ <PackageReference Include =" xunit" Version =" 2.9.3 " />
17+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 3.1 .5" >
1718 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1819 <PrivateAssets >all</PrivateAssets >
1920 </PackageReference >
20- <PackageReference Include =" coverlet.collector" Version =" 6.0.0 " >
21+ <PackageReference Include =" coverlet.collector" Version =" 6.0.4 " >
2122 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
2223 <PrivateAssets >all</PrivateAssets >
2324 </PackageReference >
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net8.0</ TargetFramework >
5+ <TargetFrameworks >net8.0;net9.0</ TargetFrameworks >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
88
1919 <ItemGroup >
2020 <None Include =" ..\..\README.md" Link =" README.md" Pack =" true" PackagePath =" \" />
2121 </ItemGroup >
22-
22+
23+ <!-- Common dependencies for all target frameworks -->
2324 <ItemGroup >
24- <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 8.0.0" />
25- <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 8.0.0" />
26- <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 8.0.0" />
27- <PackageReference Include =" Pidgin" Version =" 3.2.2" />
25+ <PackageReference Include =" Pidgin" Version =" 3.5.0" />
26+ </ItemGroup >
27+
28+ <!-- Dependencies for .NET 8.0 -->
29+ <ItemGroup Condition =" '$(TargetFramework)' == 'net8.0'" >
30+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 8.0.0" />
31+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 8.0.0" />
32+ <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 8.0.0" />
33+ </ItemGroup >
34+
35+ <!-- Dependencies for .NET 9.0 -->
36+ <ItemGroup Condition =" '$(TargetFramework)' == 'net9.0'" >
37+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 9.0.0" />
38+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 9.0.0" />
39+ <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 9.0.0" />
2840 </ItemGroup >
2941
3042</Project >
You can’t perform that action at this time.
0 commit comments