diff --git a/eng/Versions.props b/eng/Versions.props index 95ba1fe9e01e..b1e6b5ffb141 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -6,7 +6,7 @@ 0 100 preview - 2 + 5 false release diff --git a/global.json b/global.json index 1a5da7e148a8..4dc3e838b8c1 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "tools": { - "dotnet": "6.0.100-preview.4.21179.4", + "dotnet": "6.0.100-preview.5.21225.11", "runtimes": { "dotnet": [ "5.0.0" diff --git a/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs b/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs index 66ee602a56b5..103e60eaccc6 100644 --- a/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs +++ b/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs @@ -998,9 +998,9 @@ void VerifyRecordedReflectionPatterns (AssemblyDefinition original, TestReflecti // By now all verified recorded patterns were removed from the test recorder lists, so validate // that there are no remaining patterns for this type. var recognizedPatternsForType = reflectionPatternRecorder.RecognizedPatterns - .Where (pattern => pattern.Source.DeclaringType?.FullName == typeToVerify.FullName); + .Where (pattern => pattern.Source?.DeclaringType?.FullName == typeToVerify.FullName); var unrecognizedPatternsForType = reflectionPatternRecorder.UnrecognizedPatterns - .Where (pattern => pattern.Source.DeclaringType?.FullName == typeToVerify.FullName); + .Where (pattern => pattern.Source?.DeclaringType?.FullName == typeToVerify.FullName); if (recognizedPatternsForType.Any () || unrecognizedPatternsForType.Any ()) { string recognizedPatterns = string.Join (Environment.NewLine, recognizedPatternsForType