Fix headless editor & Roslyn analyzer include resolution
This commit is contained in:
@@ -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>");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user