diff --git a/AvaloniaVS.Shared/Views/AvaloniaDesigner.xaml.cs b/AvaloniaVS.Shared/Views/AvaloniaDesigner.xaml.cs index 783a08ca..5c9c97b9 100644 --- a/AvaloniaVS.Shared/Views/AvaloniaDesigner.xaml.cs +++ b/AvaloniaVS.Shared/Views/AvaloniaDesigner.xaml.cs @@ -347,7 +347,11 @@ bool IsValidTarget(ProjectInfo project) bool IsValidOutput(ProjectOutputInfo output) { - return output.IsNetCore && output.RuntimeIdentifier != "browser-wasm" && (output.TargetPlatfromIdentifier == "" || output.TargetPlatfromIdentifier == "Windows" || output.TargetPlatfromIdentifier == "macos"); + return output.IsNetCore + && output.RuntimeIdentifier != "browser-wasm" + && (output.TargetPlatfromIdentifier == "" + || string.Equals(output.TargetPlatfromIdentifier, "windows", StringComparison.OrdinalIgnoreCase) + || string.Equals(output.TargetPlatfromIdentifier, "macos", StringComparison.OrdinalIgnoreCase)); } string GetXamlAssembly(ProjectOutputInfo output)