diff options
author | Ivan Shakhov <Ivan.Shakhov@jetbrains.com> | 2019-12-30 16:16:47 +0100 |
---|---|---|
committer | Ivan Shakhov <Ivan.Shakhov@jetbrains.com> | 2019-12-30 16:16:47 +0100 |
commit | af2e6e12d1eb9a31a5ac5ab8442abb7503a3d50b (patch) | |
tree | 221d3ea3543cf38b1849d9a03c13ad26673d4180 /modules/mono/editor/GodotTools/GodotTools.ProjectEditor | |
parent | d711c57d767734887fbf0955a7b9902c54498a0d (diff) |
add custom property to csproj, which identifies that project is generated by Godot
Diffstat (limited to 'modules/mono/editor/GodotTools/GodotTools.ProjectEditor')
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs index b40d985d51..7e69c388e9 100644 --- a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs +++ b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs @@ -2,6 +2,7 @@ using GodotTools.Core; using System; using System.Collections.Generic; using System.IO; +using System.Reflection; using Microsoft.Build.Construction; namespace GodotTools.ProjectEditor @@ -155,6 +156,7 @@ namespace GodotTools.ProjectEditor mainGroup.AddProperty("RootNamespace", IdentifierUtils.SanitizeQualifiedIdentifier(name, allowEmptyIdentifiers: true)); mainGroup.AddProperty("AssemblyName", name); mainGroup.AddProperty("TargetFrameworkVersion", "v4.5"); + mainGroup.AddProperty("GodotProjectGeneratorVersion", Assembly.GetExecutingAssembly().GetName().Version.ToString()); var debugGroup = root.AddPropertyGroup(); debugGroup.Condition = " '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "; |