Skip to content

Commit

Permalink
Linking to source on projects in different directory now properly works
Browse files Browse the repository at this point in the history
Create Plugin Window now appears at the cursor position.
  • Loading branch information
vchelaru committed Jan 15, 2024
1 parent 0d1e4d9 commit c25223a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions FRBDK/Glue/Glue/Controls/CreatePluginWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Windows.Forms;
using L = Localization;
using MessageBox = System.Windows.Forms.MessageBox;
using GlueFormsCore.Extensions;

namespace FlatRedBall.Glue.Controls;

Expand All @@ -36,6 +37,13 @@ public CreatePluginWindow()
FillInstalledPluginComboBox();

UpdateToSelectedSource();

Loaded += HandleLoaded;
}

private void HandleLoaded(object sender, RoutedEventArgs e)
{
this.MoveToCursor();
}

#region Methods
Expand Down
2 changes: 1 addition & 1 deletion FRBDK/Glue/Glue/VSHelpers/VSSolution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static bool AddExistingProjectWithDotNet(FilePath solution, FilePath proj
var startInfo = new ProcessStartInfo
{
FileName = "dotnet.exe",
Arguments = $"sln \"{solution.FullPath}\" add \"{project.FullPath}\"",
Arguments = $"sln \"{solution.FullPath}\" add \"{project.FullPath.Replace("/", "\\")}\" --in-root",
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden,
RedirectStandardOutput = true,
Expand Down

0 comments on commit c25223a

Please sign in to comment.