Skip to content

Commit

Permalink
Use .NET8 and support autofac 7.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Mafii committed Dec 18, 2023
1 parent 17b77f6 commit 2a16da6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
autofac: [ 'lowestSupported', '6.0.0' ]
autofac: [ 'lowestSupported', '6.0.0', '7.1.0' ]
env:
AutofacVersion: ${{matrix.autofac}}
steps:
Expand Down
2 changes: 1 addition & 1 deletion Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="Runtime dependencies">
<PackageReference Update="Autofac" Version="$(AutofacVersion)" />
<PackageReference Update="Autofac" Version="[5.1.2, 7)" Condition="'$(AutofacVersion)' == '' Or '$(AutofacVersion)' == 'lowestSupported'" />
<PackageReference Update="Autofac" Version="[5.1.2, 8)" Condition="'$(AutofacVersion)' == '' Or '$(AutofacVersion)' == 'lowestSupported'" />
<PackageReference Update="Messerli.CompositionRoot" Version="[0.2.1, 2)" />
<PackageReference Update="Messerli.TempDirectory" Version="[0.3.0, 0.4)" />
<PackageReference Update="Moq" Version="[4.13.1, 5)" />
Expand Down
8 changes: 3 additions & 5 deletions Test.Utility.Test/Test.Utility.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<AssemblyName>Messerli.Test.Utility.Test</AssemblyName>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<LangVersion>8.0</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12.0</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand All @@ -16,9 +16,7 @@
<ProjectReference Include="..\TestAssemblies\EmptyAssembly\EmptyAssembly.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="Resources\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Resources\**\*" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
Expand Down
6 changes: 3 additions & 3 deletions Test.Utility/Test.Utility.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<AssemblyName>Messerli.Test.Utility</AssemblyName>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;netstandard2.1;netstandard2.0</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<TargetFrameworks>NET8.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<LangVersion>12.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<PackageId>Messerli.Test.Utility</PackageId>
<Version>0.8.8</Version>
<Version>0.9.0</Version>
<Description>Class library to simplify test-setups.</Description>
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
<PackageTags>test utility</PackageTags>
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,8 @@ Rerelease of 0.6.0 with fixed nuget package.
## 0.8.7
* Update to newest version of `Messerli.TempDirectory`.
* Enable source link and deterministic builds.

## 0.9.0
* Add `TargetFramework` `net8.0`.
* Remove `TargetFramework` `netcoreapp3.1`.
* Update `Autofac` to `7.1.0`.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "5.0.402",
"version": "8.0.100",
"rollForward": "latestFeature"
},
"msbuild-sdks": {
Expand Down

0 comments on commit 2a16da6

Please sign in to comment.