[wasm] Remove System.Reflection.MetadataLoadContext from WasmAppBuilder (#44751)
authorMitchell Hwang <mitchhwang1418@gmail.com>
Thu, 10 Dec 2020 04:00:18 +0000 (23:00 -0500)
committerGitHub <noreply@github.com>
Thu, 10 Dec 2020 04:00:18 +0000 (23:00 -0500)
commit57707b3ffc411afb3a8b1fa09969ba5ba46a7703
treed461a581815cd72fa11b61720ab4886d1be38b08
parentf2e38c3ac95c632a64cbe11a75db9287a14b99e0
[wasm] Remove System.Reflection.MetadataLoadContext from WasmAppBuilder (#44751)

Separates the assembly and reference assembly loading process from the WasmAppBuilder into a separate task in WasmLoadAssembliesAndReferences.cs

Refactors that loading process to take in assemblies, search paths, and the option to skip missing referenced assemblies, thereby reducing the original complexity with respect to MainAssembly, ExtraAssemblies and having at least one of Assemblies or AssemblySearchPaths

Applies the updated WasmAppBuilder and WasmLoadAssembliesAndReferences tasks to the library tests (tests.mobile.targets), browser sample (WasmSample.csproj), debugger-tests (debugger-tests.csproj), and the runtime tests (WasmTestRunner.proj)

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>
Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
eng/testing/tests.mobile.targets
src/mono/netcore/sample/wasm/browser/WasmSample.csproj
src/mono/wasm/Makefile
src/mono/wasm/debugger/tests/debugger-test/debugger-test.csproj
src/tasks/WasmAppBuilder/WasmAppBuilder.cs
src/tasks/WasmAppBuilder/WasmAppBuilder.csproj
src/tasks/WasmAppBuilder/WasmLoadAssembliesAndReferences.cs [new file with mode: 0644]
src/tests/Common/wasm-test-runner/WasmTestRunner.proj