1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Added mono module

This commit is contained in:
Ignacio Etcheverry
2017-10-02 23:24:00 +02:00
parent 29b44801b2
commit e36fb95c50
92 changed files with 19622 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.IO;
using Microsoft.Build.Construction;
namespace GodotSharpTools.Project
{
public static class ProjectUtils
{
public static void AddItemToProjectChecked(string projectPath, string itemType, string include)
{
var dir = Directory.GetParent(projectPath).FullName;
var root = ProjectRootElement.Open(projectPath);
root.AddItemChecked(itemType, include.RelativeToPath(dir).Replace("/", "\\"));
root.Save();
}
}
}