Skip to content

Commit

Permalink
chore: upgrade to .net9
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikoo-Asadnejad committed Nov 14, 2024
1 parent 80f421a commit 5b6e703
Show file tree
Hide file tree
Showing 39 changed files with 322 additions and 78 deletions.
2 changes: 1 addition & 1 deletion GenericRepository.Tests/GenericRepository.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("GenericRepository.Tests")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+07c180bb50cb7647ac794015441d08efaafeb78b")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+80f421a0826ed8aec1ba3e61dac95ac9040b15b3")]
[assembly: System.Reflection.AssemblyProductAttribute("GenericRepository.Tests")]
[assembly: System.Reflection.AssemblyTitleAttribute("GenericRepository.Tests")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3e876b3afb501e7c313ae5ca181eb66106e069cf2358c449902ecd1446d5c5fb
517b3e4ff6dbf9fb6482206d10325304fb46b56345871a197e5987b1fd20dcb4
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ build_property.RootNamespace = GenericRepository.Tests
build_property.ProjectDir = /Users/macbook/Projects/Generic Repository/GenericRepository.Tests/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 8.0
build_property.EnableCodeStyleSeverity =
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("GenericRepository.Tests")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+80f421a0826ed8aec1ba3e61dac95ac9040b15b3")]
[assembly: System.Reflection.AssemblyProductAttribute("GenericRepository.Tests")]
[assembly: System.Reflection.AssemblyTitleAttribute("GenericRepository.Tests")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
517b3e4ff6dbf9fb6482206d10325304fb46b56345871a197e5987b1fd20dcb4
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
is_global = true
build_property.TargetFramework = net9.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = GenericRepository.Tests
build_property.ProjectDir = /Users/macbook/Projects/Generic Repository/GenericRepository.Tests/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0
build_property.EnableCodeStyleSeverity =
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"/Users/macbook/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {
"/Users/macbook/Projects/Generic Repository/GenericRepository/GenericRepository.csproj": {
"projectPath": "/Users/macbook/Projects/Generic Repository/GenericRepository/GenericRepository.csproj"
Expand All @@ -40,12 +40,12 @@
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
"auditMode": "all"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"net9.0": {
"targetAlias": "net9.0",
"dependencies": {
"Microsoft.NET.Test.Sdk": {
"target": "Package",
Expand Down Expand Up @@ -92,7 +92,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/x64/sdk/8.0.201/PortableRuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.100/PortableRuntimeIdentifierGraph.json"
}
}
},
Expand All @@ -109,14 +109,14 @@
"/Users/macbook/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
Expand All @@ -128,12 +128,12 @@
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
"auditMode": "all"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"net9.0": {
"targetAlias": "net9.0",
"dependencies": {
"EFCore.BulkExtensions": {
"target": "Package",
Expand Down Expand Up @@ -188,7 +188,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/x64/sdk/8.0.201/PortableRuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.100/PortableRuntimeIdentifierGraph.json"
}
}
}
Expand Down
82 changes: 66 additions & 16 deletions GenericRepository.Tests/obj/project.assets.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 3,
"targets": {
"net8.0": {
"net9.0": {
"Azure.Core/1.38.0": {
"type": "package",
"dependencies": {
Expand Down Expand Up @@ -3223,7 +3223,7 @@
},
"GenericRepository/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v8.0",
"framework": ".NETCoreApp,Version=v9.0",
"dependencies": {
"EFCore.BulkExtensions": "8.1.1",
"EntityFramework.BulkExtensions": "1.0.0",
Expand Down Expand Up @@ -9578,7 +9578,7 @@
}
},
"projectFileDependencyGroups": {
"net8.0": [
"net9.0": [
"GenericRepository >= 1.0.0",
"Microsoft.NET.Test.Sdk >= 17.3.2",
"Moq >= 4.18.4",
Expand All @@ -9604,14 +9604,14 @@
"/Users/macbook/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {
"/Users/macbook/Projects/Generic Repository/GenericRepository/GenericRepository.csproj": {
"projectPath": "/Users/macbook/Projects/Generic Repository/GenericRepository/GenericRepository.csproj"
Expand All @@ -9627,12 +9627,12 @@
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
"auditMode": "all"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"net9.0": {
"targetAlias": "net9.0",
"dependencies": {
"Microsoft.NET.Test.Sdk": {
"target": "Package",
Expand Down Expand Up @@ -9679,39 +9679,89 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/x64/sdk/8.0.201/PortableRuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.100/PortableRuntimeIdentifierGraph.json"
}
}
},
"logs": [
{
"code": "NU1903",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'Microsoft.Extensions.Caching.Memory' 8.0.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-qj66-m88j-hmgj",
"libraryId": "Microsoft.Extensions.Caching.Memory",
"targetGraphs": [
"net9.0"
]
},
{
"code": "NU1903",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'Newtonsoft.Json' 9.0.1 has a known high severity vulnerability, https://github.com/advisories/GHSA-5crp-9r3c-p9vr",
"libraryId": "Newtonsoft.Json",
"targetGraphs": [
"net9.0"
]
},
{
"code": "NU1903",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'System.Net.Http' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-7jgj-8wvc-jh57",
"libraryId": "System.Net.Http",
"targetGraphs": [
"net9.0"
]
},
{
"code": "NU1903",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'System.Text.Json' 8.0.4 has a known high severity vulnerability, https://github.com/advisories/GHSA-8g4q-xg66-9fp4",
"libraryId": "System.Text.Json",
"targetGraphs": [
"net9.0"
]
},
{
"code": "NU1903",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'System.Text.RegularExpressions' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-cmhx-cq75-c4mj",
"libraryId": "System.Text.RegularExpressions",
"targetGraphs": [
"net9.0"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'EntityFramework 6.1.3' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0'. This package may not be fully compatible with your project.",
"message": "Package 'EntityFramework 6.1.3' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.",
"libraryId": "EntityFramework",
"targetGraphs": [
"net8.0"
"net9.0"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'EntityFramework.BulkExtensions 1.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0'. This package may not be fully compatible with your project.",
"message": "Package 'EntityFramework.BulkExtensions 1.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.",
"libraryId": "EntityFramework.BulkExtensions",
"targetGraphs": [
"net8.0"
"net9.0"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'EntityFramework.MappingAPI 6.1.0.9' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0'. This package may not be fully compatible with your project.",
"message": "Package 'EntityFramework.MappingAPI 6.1.0.9' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.",
"libraryId": "EntityFramework.MappingAPI",
"targetGraphs": [
"net8.0"
"net9.0"
]
}
]
Expand Down
Loading

0 comments on commit 5b6e703

Please sign in to comment.