@@ -251,9 +251,9 @@ private static void PatchLaunchFile(string launchFile)
251251 var containsVstucEntry = false ;
252252 var patched = false ;
253253
254- foreach ( var ( _ , entry ) in configurations )
254+ foreach ( var entry in configurations )
255255 {
256- var type = entry [ typeKey ] . Value ;
256+ var type = entry . Value [ typeKey ] . Value ;
257257 if ( type == "vstuc" )
258258 {
259259 containsVstucEntry = true ;
@@ -372,16 +372,16 @@ private void PatchSettingsFile(string settingsFile)
372372 var patched = false ;
373373
374374 // Remove files.exclude for solution+project files in the project root
375- foreach ( var ( key , exclude ) in excludes )
375+ foreach ( var exclude in excludes )
376376 {
377377 if ( ! bool . TryParse ( exclude . Value , out var exc ) || ! exc )
378378 continue ;
379379
380- if ( key . EndsWith ( ".sln" ) || key . EndsWith ( ".csproj" ) )
380+ if ( exclude . Key . EndsWith ( ".sln" ) || exclude . Key . EndsWith ( ".csproj" ) )
381381 {
382- if ( Regex . IsMatch ( key , "^(\\ *\\ *[\\ \\ \\ /])?\\ *\\ .(sln|csproj)$" ) )
382+ if ( Regex . IsMatch ( exclude . Key , "^(\\ *\\ *[\\ \\ \\ /])?\\ *\\ .(sln|csproj)$" ) )
383383 {
384- patchList . Add ( key ) ;
384+ patchList . Add ( exclude . Key ) ;
385385 patched = true ;
386386 }
387387 }
@@ -449,9 +449,9 @@ private static void PatchRecommendedExtensionsFile(string extensionFile)
449449 extensions . Add ( recommendationsKey , recommendations ) ;
450450 }
451451
452- foreach ( var ( _ , entry ) in recommendations )
452+ foreach ( var entry in recommendations )
453453 {
454- if ( entry . Value == MicrosoftUnityExtensionId )
454+ if ( entry . Value . Value == MicrosoftUnityExtensionId )
455455 return ;
456456 }
457457
0 commit comments