add custom property to csproj, which identifies that project is generated by Godot

This commit is contained in:
Ivan Shakhov 2019-12-30 16:16:47 +01:00
parent d711c57d76
commit af2e6e12d1

View file

@ -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' ";