Skip to content

Commit

Permalink
Merge pull request #368 from Glen-Nicol-Garmin/master
Browse files Browse the repository at this point in the history
Fix: Made desktop TargetPlatfromIdentifier check case insensitive
  • Loading branch information
Takoooooo committed Aug 14, 2023
2 parents b99d054 + 60425b5 commit 9a6b3e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AvaloniaVS.Shared/Views/AvaloniaDesigner.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a6b3e5

Please sign in to comment.