Skip to content

Commit

Permalink
Make check more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Dec 22, 2023
1 parent 298dbc7 commit 32c38d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/GUI/Shared/Extensions/ProjectExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,12 @@ private static bool IsNet80(string targetFrameworkMonikers)

private static bool FrameworkCheck(string targetFrameworkMonikers, string version)
{
return targetFrameworkMonikers?.Contains($".NETCoreApp,Version=v{version}.0") ?? false;
if (string.IsNullOrEmpty(targetFrameworkMonikers))
{
return false;
}

return targetFrameworkMonikers.IndexOf($".NETCoreApp,Version=v{version}.0", StringComparison.OrdinalIgnoreCase) >= 0;
}

private static async Task<string> GetOutputPathAsync(Project project)
Expand Down

0 comments on commit 32c38d3

Please sign in to comment.