Skip to content

Commit 4ce8f50

Browse files
author
Arnaud Leclerc
committed
Drop net5.0. Add support to net7.0 and net8.0
1 parent 8ec56dc commit 4ce8f50

3 files changed

Lines changed: 20 additions & 25 deletions

File tree

samples/AzureMapsControl.Sample/AzureMapsControl.Sample.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66

7-
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
8-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.0" />
9-
</ItemGroup>
10-
11-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
12-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.0" />
7+
<ItemGroup>
8+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.0" />
139
</ItemGroup>
1410

1511
<ItemGroup>

src/AzureMapsControl.Components/AzureMapsControl.Components.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<RazorLangVersion>3.0</RazorLangVersion>
66
<Authors>Arnaud Leclerc</Authors>
77
<Company />
@@ -37,19 +37,19 @@
3737
<None Include="tsconfig.json" />
3838
</ItemGroup>
3939

40+
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
41+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.25" />
42+
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
43+
</ItemGroup>
4044

41-
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
42-
<PackageReference Include="Microsoft.AspNetCore.Components" Version="5.0.0" />
43-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="5.0.0" />
44-
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="5.0.0" />
45-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
45+
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
46+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.14" />
47+
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
4648
</ItemGroup>
4749

48-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
49-
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.0" />
50-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
51-
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
52-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
50+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
51+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
52+
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
5353
</ItemGroup>
5454

5555
</Project>

tests/AzureMapsControl.Components.Tests/AzureMapsControl.Components.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
5-
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
65
<IsPackable>false</IsPackable>
76
</PropertyGroup>
87

98
<ItemGroup>
10-
<PackageReference Include="bunit" Version="1.1.5" />
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0-release-20210429-01" />
9+
<PackageReference Include="bunit" Version="1.26.64" />
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
1211
<PackageReference Include="Moq" Version="4.16.1" />
13-
<PackageReference Include="xunit" Version="2.4.1" />
14-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
12+
<PackageReference Include="xunit" Version="2.6.3" />
13+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5">
1514
<PrivateAssets>all</PrivateAssets>
1615
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1716
</PackageReference>
18-
<PackageReference Include="coverlet.collector" Version="3.0.3">
17+
<PackageReference Include="coverlet.collector" Version="6.0.0">
1918
<PrivateAssets>all</PrivateAssets>
2019
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2120
</PackageReference>

0 commit comments

Comments
 (0)