You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
C#: Add VisualStudio support
This commit is contained in:
@@ -165,6 +165,21 @@ namespace GodotTools.ProjectEditor
|
||||
return result.ToArray();
|
||||
}
|
||||
|
||||
public static void EnsureHasProjectTypeGuids(MSBuildProject project)
|
||||
{
|
||||
var root = project.Root;
|
||||
|
||||
bool found = root.PropertyGroups.Any(pg =>
|
||||
string.IsNullOrEmpty(pg.Condition) && pg.Properties.Any(p => p.Name == "ProjectTypeGuids"));
|
||||
|
||||
if (found)
|
||||
return;
|
||||
|
||||
root.AddProperty("ProjectTypeGuids", ProjectGenerator.GodotDefaultProjectTypeGuids);
|
||||
|
||||
project.HasUnsavedChanges = true;
|
||||
}
|
||||
|
||||
/// Simple function to make sure the Api assembly references are configured correctly
|
||||
public static void FixApiHintPath(MSBuildProject project)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user