diff --git a/src/SourceBuild/tarball/patches/runtime/0001-Define-SystemReflectionMetadataLoadContextVersion-pr.patch b/src/SourceBuild/tarball/patches/runtime/0001-Define-SystemReflectionMetadataLoadContextVersion-pr.patch new file mode 100644 index 000000000..721dc2879 --- /dev/null +++ b/src/SourceBuild/tarball/patches/runtime/0001-Define-SystemReflectionMetadataLoadContextVersion-pr.patch @@ -0,0 +1,44 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: MichaelSimons +Date: Sat, 19 Feb 2022 12:12:32 +0000 +Subject: [PATCH] Define SystemReflectionMetadataLoadContextVersion property + for package references + +System.Reflection.MetadataLoadContext references were using an incorrect version.props property which breaks source-build. +In 6.0.3 SystemReflectionMetadataVersion was revved but not SystemReflectionMetadataLoadContextVersion therefore breaking +the build because a System.Reflection.MetadataLoadContext with the SystemReflectionMetadataVersion does not exist. +--- + eng/Versions.props | 1 + + src/tasks/WasmAppBuilder/WasmAppBuilder.csproj | 4 ++-- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/eng/Versions.props b/eng/Versions.props +index 5e9d0039096..34034aa87ba 100644 +--- a/eng/Versions.props ++++ b/eng/Versions.props +@@ -86,6 +86,7 @@ + 5.0.0 + + 5.0.0 ++ 5.0.0 + 4.7.0 + 4.7.0 + 4.7.0 +diff --git a/src/tasks/WasmAppBuilder/WasmAppBuilder.csproj b/src/tasks/WasmAppBuilder/WasmAppBuilder.csproj +index 358de5541e3..abf6d26d9ef 100644 +--- a/src/tasks/WasmAppBuilder/WasmAppBuilder.csproj ++++ b/src/tasks/WasmAppBuilder/WasmAppBuilder.csproj +@@ -23,11 +23,11 @@ + + + +- ++ + + + +- ++ + + +