Skip to content

Commit

Permalink
Use .net8
Browse files Browse the repository at this point in the history
  • Loading branch information
seesharper committed Oct 27, 2024
1 parent e0f425a commit 808e3fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "7.0.100",
"version": "8.0.402",
"rollForward": "latestFeature"
}
}
8 changes: 4 additions & 4 deletions src/LightInject.Tests/LightInject.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<NoWarn>$(NoWarn);CS0579</NoWarn>
<TestTargetFrameworks>net6.0;netstandard2.0</TestTargetFrameworks>
<TestTargetFramework>net6.0</TestTargetFramework>
<TestTargetFrameworks>net8.0;netstandard2.0</TestTargetFrameworks>
<TestTargetFramework>net8.0</TestTargetFramework>
</PropertyGroup>
<Choose>
<When Condition=" '$(TestTargetFramework)'=='netstandard2.0' ">
Expand All @@ -13,7 +13,7 @@
</PropertyGroup>
</When>
</Choose>
<PropertyGroup Condition=" '$(TestTargetFramework)'=='net6.0' ">
<PropertyGroup Condition=" '$(TestTargetFramework)'=='net8.0' ">
<DefineConstants>USE_ASSEMBLY_VERIFICATION;USE_ASYNCDISPOSABLE</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(TestTargetFramework)' == 'net46' OR '$(TestTargetFramework)' == 'netstandard2.0'">
Expand Down
2 changes: 1 addition & 1 deletion src/LightInject/LightInject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4675,7 +4675,7 @@ private Action<IEmitter> CreateEmitMethodForReadOnlyCollectionServiceRequest(Typ
Type elementType = TypeHelper.GetElementType(serviceType);
Type closedGenericReadOnlyCollectionType = typeof(ReadOnlyCollection<>).MakeGenericType(elementType);
ConstructorInfo constructorInfo =
closedGenericReadOnlyCollectionType.GetTypeInfo().DeclaredConstructors.Single();
closedGenericReadOnlyCollectionType.GetTypeInfo().DeclaredConstructors.Where(c => c.GetParameters().Length == 1).Single();

Action<IEmitter> listEmitMethod = CreateEmitMethodForListServiceRequest(serviceType, serviceName);

Expand Down
4 changes: 2 additions & 2 deletions src/LightInject/LightInject.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.0;netcoreapp3.1;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.0;netcoreapp3.1;net462</TargetFrameworks>
<Version>6.6.4</Version>
<Authors>Bernhard Richter</Authors>
<PackageProjectUrl>https://www.lightinject.net</PackageProjectUrl>
Expand Down Expand Up @@ -34,7 +34,7 @@
</When>
</Choose>
<Choose>
<When Condition=" '$(TargetFramework)'=='net6.0' Or '$(TestTargetFramework)'=='net6.0'">
<When Condition=" '$(TargetFramework)'=='net8.0' Or '$(TestTargetFramework)'=='net8.0'">
<PropertyGroup>
<DefineConstants>USE_ASYNCDISPOSABLE</DefineConstants>
</PropertyGroup>
Expand Down

0 comments on commit 808e3fb

Please sign in to comment.