File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/dotnet-core-uninstall/Windows Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,13 @@ private static bool IsDotNetCoreBundle(RegistryKey registryKey)
49
49
{
50
50
return IsDotNetCoreBundleDisplayName ( registryKey . GetValue ( "DisplayName" ) as string )
51
51
&& IsDotNetCoreBundlePublisher ( registryKey . GetValue ( "Publisher" ) as string )
52
- && IsDotNetCoreBundleUninstaller ( registryKey . GetValue ( "WindowsInstaller" ) as int ? ) ;
52
+ && IsDotNetCoreBundleUninstaller ( registryKey . GetValue ( "WindowsInstaller" ) as int ? )
53
+ && IsNotVisualStudioDummyVersion ( registryKey . GetValue ( "DisplayName" ) as string ) ;
54
+ }
55
+
56
+ private static bool IsNotVisualStudioDummyVersion ( string displayName )
57
+ {
58
+ return ! displayName . Contains ( " from Visual Studio" ) ;
53
59
}
54
60
55
61
private static bool IsDotNetCoreBundleDisplayName ( string displayName )
You can’t perform that action at this time.
0 commit comments