Skip to content

Commit cf703ba

Browse files
authored
Target both .NET5 and .NET6 (#59)
* Updated packages and Target .NET6 * Target both .NET5 and .NET6 * Changed Github workflow to use .NET6 * Github workflow action: Changed "actions/setup-dotnet@v1" to "actions/setup-dotnet@v3"
1 parent 23b8e7c commit cf703ba

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/dotnet.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
- name: Setup .NET
19-
uses: actions/setup-dotnet@v1
19+
uses: actions/setup-dotnet@v3
2020
with:
21-
dotnet-version: 5.0.x
21+
dotnet-version: 6.0.x
2222
- name: Restore dependencies
2323
run: dotnet restore
2424
- name: Build

FinancialModelingPrepApi/FinancialModelingPrepApi.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
55
<RootNamespace>MatthiWare.FinancialModelingPrep</RootNamespace>
66
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
77
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
@@ -30,8 +30,8 @@
3030
<PackageReference Include="Bert.RateLimiters" Version="1.0.15" />
3131
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
3232
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
33-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" />
34-
<PackageReference Include="MinVer" Version="4.1.0">
33+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.2" />
34+
<PackageReference Include="MinVer" Version="4.2.0">
3535
<PrivateAssets>all</PrivateAssets>
3636
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3737
</PackageReference>

Tests/Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

0 commit comments

Comments
 (0)