Skip to content

Commit

Permalink
Update netcore for version 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 27, 2023
1 parent feeb469 commit a780f6b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static MetacallEntryPoint()

#if NETCOREAPP1_0 || NETCOREAPP1_1 || NETCOREAPP1_2
loader = new Providers.LoaderV1(log);
#elif NETCOREAPP2_0 || NETCOREAPP2_1 || NETCOREAPP2_2 || NET5_0 // TODO: Implement or test support for 3
#elif NETCOREAPP2_0 || NETCOREAPP2_1 || NETCOREAPP2_2 || NET5_0 || NET7_0 // TODO: Implement or test support for 3
loader = new Providers.LoaderV2(log);
#else
# error "NET Core platform not supported"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if NETCOREAPP2_0 || NETCOREAPP2_1 || NETCOREAPP2_2 || NET5_0
#if NETCOREAPP2_0 || NETCOREAPP2_1 || NETCOREAPP2_2 || NET5_0 || NET7_0

using System;
using System.Collections.Generic;
Expand Down
11 changes: 9 additions & 2 deletions source/loaders/cs_loader/netcore/source/project.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@
<AssemblyName>CSLoader</AssemblyName>
<PackageId>CSLoader</PackageId>
<VersionPrefix>1.0.0</VersionPrefix>
<!-- NetCore 2 -->
<!-- <TargetFramework>netcoreapp2.2</TargetFramework> -->
<TargetFramework>net5.0</TargetFramework>
<!-- NetCore 5 -->
<!-- <TargetFramework>net5.0</TargetFramework> -->
<!-- NetCore 7 -->
<TargetFramework>net7.0</TargetFramework>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.2.1" />
<!-- NetCore 5 -->
<!-- <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.2.1" /> -->
<!-- NetCore 7 -->
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0" />
</ItemGroup>

</Project>

0 comments on commit a780f6b

Please sign in to comment.