mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #34699 from van800/godot-guid
Custom property for Godot generated project
This commit is contained in:
commit
7fddf5eb7c
@ -2,6 +2,7 @@ using GodotTools.Core;
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
using Microsoft.Build.Construction;
|
using Microsoft.Build.Construction;
|
||||||
|
|
||||||
namespace GodotTools.ProjectEditor
|
namespace GodotTools.ProjectEditor
|
||||||
@ -100,6 +101,7 @@ namespace GodotTools.ProjectEditor
|
|||||||
mainGroup.AddProperty("RootNamespace", IdentifierUtils.SanitizeQualifiedIdentifier(name, allowEmptyIdentifiers: true));
|
mainGroup.AddProperty("RootNamespace", IdentifierUtils.SanitizeQualifiedIdentifier(name, allowEmptyIdentifiers: true));
|
||||||
mainGroup.AddProperty("AssemblyName", name);
|
mainGroup.AddProperty("AssemblyName", name);
|
||||||
mainGroup.AddProperty("TargetFrameworkVersion", "v4.5");
|
mainGroup.AddProperty("TargetFrameworkVersion", "v4.5");
|
||||||
|
mainGroup.AddProperty("GodotProjectGeneratorVersion", Assembly.GetExecutingAssembly().GetName().Version.ToString());
|
||||||
|
|
||||||
var debugGroup = root.AddPropertyGroup();
|
var debugGroup = root.AddPropertyGroup();
|
||||||
debugGroup.Condition = " '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ";
|
debugGroup.Condition = " '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ";
|
||||||
|
Loading…
Reference in New Issue
Block a user