File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
src/ServiceComposer.AspNetCore.Testing Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 1- #if NET5_0 || NETCOREAPP
2-
3- using System ;
1+ using System ;
42using Microsoft . AspNetCore . Builder ;
53using Microsoft . AspNetCore . Hosting ;
64using Microsoft . AspNetCore . Mvc . Testing ;
@@ -49,5 +47,4 @@ protected override IHostBuilder CreateHostBuilder()
4947 return hostBuilder ;
5048 }
5149 }
52- }
53- #endif
50+ }
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net6.0</TargetFrameworks >
4+ <TargetFrameworks >net6.0;net7.0 </TargetFrameworks >
55 </PropertyGroup >
66
77 <PropertyGroup >
2121 </PropertyGroup >
2222
2323 <ItemGroup >
24- <None Include =" ..\..\assets\ServiceComposer.png" Pack =" true" PackagePath =" \" />
24+ <None Include =" ..\..\assets\ServiceComposer.png" Pack =" true" PackagePath =" \" />
2525 </ItemGroup >
26-
26+
2727 <ItemGroup >
28- <FrameworkReference Include =" Microsoft.AspNetCore.App" />
29- <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" [6.0.0, 8.0.0)" />
28+ <FrameworkReference Include =" Microsoft.AspNetCore.App" />
29+ </ItemGroup >
30+
31+ <ItemGroup Condition =" '$(TargetFramework)' == 'net6.0'" >
32+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" [6.0.12, 7.0.0)" />
33+ </ItemGroup >
34+
35+ <ItemGroup Condition =" '$(TargetFramework)' == 'net7.0'" >
36+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" [7.0.1, 8.0.0)" />
3037 </ItemGroup >
3138
3239 <ItemGroup >
33- <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.1.1" PrivateAssets =" All" />
40+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.1.1" PrivateAssets =" All" />
3441 </ItemGroup >
3542
3643 <ItemGroup >
You can’t perform that action at this time.
0 commit comments