feat: use .NET 8

This commit is contained in:
Tobias Berger 2024-04-04 22:10:14 +02:00
parent 98ea411011
commit 035f652046
Signed by: toby
GPG key ID: 2D05EFAB764D6A88
5 changed files with 6 additions and 11 deletions

View file

@ -22,6 +22,8 @@
"csharp.inlayHints.enableInlayHintsForImplicitVariableTypes": true, "csharp.inlayHints.enableInlayHintsForImplicitVariableTypes": true,
"csharp.inlayHints.enableInlayHintsForLambdaParameterTypes": true, "csharp.inlayHints.enableInlayHintsForLambdaParameterTypes": true,
"csharp.inlayHints.enableInlayHintsForImplicitObjectCreation": true, "csharp.inlayHints.enableInlayHintsForImplicitObjectCreation": true,
"csharp.suppressDotnetInstallWarning": true,
"csharp.suppressDotnetRestoreNotification": true,
"dotnet.server.useOmnisharp": true, "dotnet.server.useOmnisharp": true,
"omnisharp.enableLspDriver": false "omnisharp.enableLspDriver": false
} }

Binary file not shown.

View file

@ -1,6 +1,4 @@
#nullable enable using Verse;
using Verse;
// using HarmonyLib; // using HarmonyLib;

View file

@ -1,5 +1,3 @@
#nullable enable
using RimWorld; using RimWorld;
using Verse; using Verse;
@ -7,11 +5,8 @@ using Verse;
namespace Template; namespace Template;
public class TemplateMapComponent : MapComponent public class TemplateMapComponent(Map map) : MapComponent(map)
{ {
public TemplateMapComponent(Map map)
: base(map) { }
public override void FinalizeInit() public override void FinalizeInit()
{ {
Messages.Message("Success", null, MessageTypeDefOf.PositiveEvent); Messages.Message("Success", null, MessageTypeDefOf.PositiveEvent);

View file

@ -15,9 +15,9 @@
# Rust dev environment # Rust dev environment
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
inputsFrom = [ config.treefmt.build.devShell ]; inputsFrom = [ config.treefmt.build.devShell ];
nativeBuildInputs = with pkgs; [ dotnet-sdk mono libxslt ]; nativeBuildInputs = with pkgs; [ dotnet-sdk_8 libxslt ];
shellHook = '' shellHook = ''
DOTNET_ROOT="${pkgs.dotnet-sdk}"; DOTNET_ROOT="${pkgs.dotnet-sdk_8}";
''; '';
}; };