You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
C#/netcore: Add base desktop game export implementation
This base implementation is still very barebones but it defines the path for how exporting will work (at least when embedding the .NET runtime). Many manual steps are still needed, which should be automatized in the future. For example, in addition to the API assemblies, now you also need to copy the GodotPlugins assembly to each game project.
This commit is contained in:
@@ -19,8 +19,15 @@ namespace GodotTools.ProjectEditor
|
||||
|
||||
public static class ProjectUtils
|
||||
{
|
||||
public static void MSBuildLocatorRegisterDefaults()
|
||||
=> Microsoft.Build.Locator.MSBuildLocator.RegisterDefaults();
|
||||
public static void MSBuildLocatorRegisterDefaults(out Version version, out string path)
|
||||
{
|
||||
var instance = Microsoft.Build.Locator.MSBuildLocator.RegisterDefaults();
|
||||
version = instance.Version;
|
||||
path = instance.MSBuildPath;
|
||||
}
|
||||
|
||||
public static void MSBuildLocatorRegisterMSBuildPath(string msbuildPath)
|
||||
=> Microsoft.Build.Locator.MSBuildLocator.RegisterMSBuildPath(msbuildPath);
|
||||
|
||||
public static MSBuildProject Open(string path)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user