Skip to content

Commit 7c32371

Browse files
authored
Fix issue with invalid cast causing retargetting to not show up (#9788)
1 parent 9650a25 commit 7c32371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Retargeting/DotNetReleasesProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private Task CreateDefaultFileIfNotExistAsync(string path, string resource, bool
133133
{
134134
// Find the product that matches the major/minor version of the SDK
135135
Product matchingProduct = products.FirstOrDefault(p => p.LatestSdkVersion.Major == parsedSdkVersion.Major &&
136-
p.LatestSdkVersion.Minor == parsedSdkVersion.Minor && p.LatestSdkVersion.IsLaterThan(sdkVersion));
136+
p.LatestSdkVersion.Minor == parsedSdkVersion.Minor && p.LatestSdkVersion.IsLaterThan(parsedSdkVersion));
137137

138138
if (matchingProduct is not null)
139139
{

0 commit comments

Comments
 (0)