mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[.NET] Upgrade user project's TargetFramework to net8.0
- Upgrades the TFM for new created projects to `net8.0`. - Implements system to upgrade TFM for existing projects to `net8.0`.
This commit is contained in:
parent
6e2cf2aa7b
commit
8d41b5a582
4 changed files with 159 additions and 10 deletions
|
|
@ -12,6 +12,8 @@ namespace GodotTools.ProjectEditor
|
|||
{
|
||||
public static string GodotSdkAttrValue => $"Godot.NET.Sdk/{GeneratedGodotNupkgsVersions.GodotNETSdk}";
|
||||
|
||||
public static string GodotMinimumRequiredTfm => "net8.0";
|
||||
|
||||
public static ProjectRootElement GenGameProject(string name)
|
||||
{
|
||||
if (name.Length == 0)
|
||||
|
|
@ -22,7 +24,7 @@ namespace GodotTools.ProjectEditor
|
|||
root.Sdk = GodotSdkAttrValue;
|
||||
|
||||
var mainGroup = root.AddPropertyGroup();
|
||||
mainGroup.AddProperty("TargetFramework", "net8.0");
|
||||
mainGroup.AddProperty("TargetFramework", GodotMinimumRequiredTfm);
|
||||
|
||||
mainGroup.AddProperty("EnableDynamicLoading", "true");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue