Skip to content

Commit e05949d

Browse files
authored
Update to .NET 8 (#5)
BREAKING CHANGE: now requires .NET 8
1 parent 93d8ab9 commit e05949d

6 files changed

Lines changed: 22 additions & 32 deletions

File tree

.github/workflows/build-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup .NET Core
1515
uses: actions/setup-dotnet@v1
1616
with:
17-
dotnet-version: 7.x
17+
dotnet-version: 8.x
1818

1919
- name: Install dependencies
2020
run: dotnet restore
@@ -27,5 +27,5 @@ jobs:
2727

2828
- name: Test Pack nuget
2929
run: |
30-
dotnet pack --no-build --no-restore --include-symbols --verbosity normal
30+
dotnet pack --no-build --no-restore --include-symbols --verbosity normal --configuration Debug
3131

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup .NET Core
2828
uses: actions/setup-dotnet@v1
2929
with:
30-
dotnet-version: 7.x
30+
dotnet-version: 8.x
3131

3232
- name: Install dependencies
3333
run: dotnet restore

QueryPattern.v3.ncrunchsolution

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<SolutionConfiguration>
22
<Settings>
33
<AllowParallelTestExecution>True</AllowParallelTestExecution>
4+
<EnableRDI>True</EnableRDI>
5+
<RdiConfigured>True</RdiConfigured>
46
<SolutionConfigured>True</SolutionConfigured>
57
</Settings>
68
</SolutionConfiguration>

sample/QuerySample/QuerySample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.5" />
12-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
11+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.3" />
12+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
1313
</ItemGroup>
1414

1515
<ItemGroup>
Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
5-
<LangVersion>11.0</LangVersion>
4+
<TargetFrameworks>net8.0</TargetFrameworks>
5+
<LangVersion>12.0</LangVersion>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
9-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
108
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
119
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1210
<EmbedUntrackedSources>true</EmbedUntrackedSources>
@@ -21,18 +19,9 @@
2119
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2220
<Copyright>Copyright © myNOC LLC 2023</Copyright>
2321
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
24-
<PackageProjectUrl>https://github.com/erenken/queryPattern</PackageProjectUrl>
25-
<RepositoryUrl>https://github.com/erenken/queryPattern</RepositoryUrl>
26-
<RepositoryType>git</RepositoryType>
27-
</PropertyGroup>
28-
29-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0|AnyCPU'">
30-
<DebugSymbols>true</DebugSymbols>
31-
<DebugType>pdbonly</DebugType>
32-
<Optimize>true</Optimize>
3322
</PropertyGroup>
3423

35-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0|AnyCPU'">
24+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
3625
<DebugSymbols>true</DebugSymbols>
3726
<DebugType>pdbonly</DebugType>
3827
<Optimize>true</Optimize>
@@ -44,11 +33,7 @@
4433
</ItemGroup>
4534

4635
<ItemGroup>
47-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.5" />
48-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
49-
<PrivateAssets>all</PrivateAssets>
50-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
51-
</PackageReference>
36+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.3" />
5237
</ItemGroup>
5338

5439
</Project>

tests/myNOC.Tests.EntityFramework.Query/myNOC.Tests.EntityFramework.Query.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -10,12 +10,15 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.5" />
14-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
15-
<PackageReference Include="MSTest.TestAdapter" Version="3.0.2" />
16-
<PackageReference Include="MSTest.TestFramework" Version="3.0.2" />
17-
<PackageReference Include="coverlet.collector" Version="3.2.0" />
18-
<PackageReference Include="NSubstitute" Version="5.0.0" />
13+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.3" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
15+
<PackageReference Include="MSTest.TestAdapter" Version="3.2.2" />
16+
<PackageReference Include="MSTest.TestFramework" Version="3.2.2" />
17+
<PackageReference Include="coverlet.collector" Version="6.0.2">
18+
<PrivateAssets>all</PrivateAssets>
19+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
20+
</PackageReference>
21+
<PackageReference Include="NSubstitute" Version="5.1.0" />
1922
</ItemGroup>
2023

2124
<ItemGroup>

0 commit comments

Comments
 (0)