Skip to content

Commit

Permalink
fix WinUI app detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlacey committed Feb 15, 2025
1 parent b70a79e commit 593b5a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ public bool ProjectUsesWpf(string projectFileContents)

public bool ProjectReferencesWinUI(string projectFileContents)
{
return projectFileContents.Contains("PackageReference Include=\"Microsoft.WindowsAppsSDK.WinUI\"")
return projectFileContents.Contains("<UseWinUI>true</UseWinUI>")
|| projectFileContents.Contains("PackageReference Include=\"Microsoft.WindowsAppsSDK.WinUI\"")
|| projectFileContents.Contains("PackageReference Include=\"Microsoft.ProjectReunion.WinUI\"");
}

Expand Down

0 comments on commit 593b5a6

Please sign in to comment.