Fix headless editor & Roslyn analyzer include resolution

This commit is contained in:
Withaust
2026-08-30 10:48:35 +03:00
parent d9f14c0a86
commit ec1f4a9a4b
2 changed files with 5 additions and 6 deletions
+4 -3
View File
@@ -672,9 +672,10 @@ namespace FlaxEditor.Windows
IsBorderless = false;
Cursor = CursorType.Default;
Screen.CursorLock = CursorLockMode.None;
if (Screen.MainWindow.IsMouseTracking)
Screen.MainWindow.EndTrackingMouse();
RootControl.GameRoot.EndMouseCapture();
var mainWindow = Screen.MainWindow;
if (mainWindow != null && mainWindow.IsMouseTracking)
mainWindow.EndTrackingMouse();
RootControl.GameRoot?.EndMouseCapture();
}
/// <inheritdoc />
@@ -330,9 +330,7 @@ namespace Flax.Build.Projects.VisualStudio
foreach (var analyzer in configuration.TargetBuildOptions.ScriptingAPI.Analyzers)
{
csProjectFileContent.AppendLine(string.Format(" <ItemGroup Condition=\" '$(Configuration)|$(Platform)' == '{0}' \">", configuration.Name));
csProjectFileContent.AppendLine(string.Format(" <Analyzer Include=\"{0}\">", Path.GetFileNameWithoutExtension(analyzer)));
csProjectFileContent.AppendLine(string.Format(" <HintPath>{0}</HintPath>", Utilities.MakePathRelativeTo(analyzer, projectDirectory).Replace('/', '\\')));
csProjectFileContent.AppendLine(" </Analyzer>");
csProjectFileContent.AppendLine(string.Format(" <Analyzer Include=\"{0}\" />", Utilities.MakePathRelativeTo(analyzer, projectDirectory).Replace('/', '\\')));
csProjectFileContent.AppendLine(" </ItemGroup>");
}