feat: use .NET 8
This commit is contained in:
parent
98ea411011
commit
035f652046
5 changed files with 6 additions and 11 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -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.
|
@ -1,6 +1,4 @@
|
||||||
#nullable enable
|
using Verse;
|
||||||
|
|
||||||
using Verse;
|
|
||||||
|
|
||||||
// using HarmonyLib;
|
// using HarmonyLib;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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}";
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue