Compile for dotnet 9.0

This commit is contained in:
Caelan Sayler
2024-12-20 15:51:22 +00:00
committed by Caelan
parent 3510cf345f
commit c80a0d7622
3 changed files with 12 additions and 15 deletions

View File

@@ -23,37 +23,37 @@
// https://docs.renovatebot.com/key-concepts/automerge // https://docs.renovatebot.com/key-concepts/automerge
"packageRules": [ "packageRules": [
{ {
"groupName": "rust deps", "groupName": "rust crates",
"matchDatasources": "crate", "matchDatasources": "crate",
"matchFileNames": ["Cargo.toml", "src/**"] "matchFileNames": ["Cargo.toml", "src/**"]
}, },
{ {
"groupName": "npm deps", "groupName": "npm packages",
"matchDatasources": "npm", "matchDatasources": "npm",
"matchFileNames": ["src/**"] "matchFileNames": ["src/**"]
}, },
{ {
"groupName": "dotnet deps", "groupName": "dotnet packages",
"matchDatasources": "nuget", "matchDatasources": "nuget",
"matchFileNames": ["src/**", "test/**"] "matchFileNames": ["src/**", "test/**"]
}, },
// samples // samples
{ {
"groupName": "sample rust deps", "groupName": "sample rust crates",
"matchDatasources": "crate", "matchDatasources": "crate",
"matchFileNames": ["samples/**"], "matchFileNames": ["samples/**"],
"separateMajorMinor": false, "separateMajorMinor": false,
"automerge": true "automerge": true
}, },
{ {
"groupName": "sample dotnet deps", "groupName": "sample dotnet packages",
"matchDatasources": "nuget", "matchDatasources": "nuget",
"matchFileNames": ["samples/**"], "matchFileNames": ["samples/**"],
"separateMajorMinor": false, "separateMajorMinor": false,
"automerge": true "automerge": true
}, },
{ {
"groupName": "sample js deps", "groupName": "sample js packages",
"matchDatasources": "npm", "matchDatasources": "npm",
"matchFileNames": ["samples/**"], "matchFileNames": ["samples/**"],
"separateMajorMinor": false, "separateMajorMinor": false,
@@ -73,13 +73,6 @@
{ {
"matchPackageNames": "SixLabors.ImageSharp", "matchPackageNames": "SixLabors.ImageSharp",
"allowedVersions": "< 3.0.0" "allowedVersions": "< 3.0.0"
},
{
"matchPackageNames": [
"Microsoft.Extensions.*",
"System.*"
],
"allowedVersions": "< 9.0.0"
} }
] ]
} }

View File

@@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>netstandard2.0;net462;net48;net6.0;net8.0</TargetFrameworks> <TargetFrameworks>netstandard2.0;net462;net48;net6.0;net8.0;net9.0</TargetFrameworks>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>9</LangVersion> <LangVersion>9</LangVersion>
@@ -42,4 +42,8 @@
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="[8.0.0,)" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="[8.0.0,)" />
</ItemGroup> </ItemGroup>
<ItemGroup Condition=" $(TargetFramework) == 'net9.0' ">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="[9.0.0,)" />
</ItemGroup>
</Project> </Project>

View File

@@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks> <TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
<AssemblyName>vpk</AssemblyName> <AssemblyName>vpk</AssemblyName>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);CA2007;CS8002</NoWarn> <NoWarn>$(NoWarn);CA2007;CS8002</NoWarn>