Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mono/wasm/build/WasmApp.Native.targets')
-rw-r--r--src/mono/wasm/build/WasmApp.Native.targets9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mono/wasm/build/WasmApp.Native.targets b/src/mono/wasm/build/WasmApp.Native.targets
index 317597e45db..2a700da6487 100644
--- a/src/mono/wasm/build/WasmApp.Native.targets
+++ b/src/mono/wasm/build/WasmApp.Native.targets
@@ -272,7 +272,12 @@
<_WasmPInvokeModules Include="libSystem.Globalization.Native" />
<_WasmPInvokeModules Include="libSystem.Security.Cryptography.Native.Browser" />
</ItemGroup>
-
+
+ <PropertyGroup>
+ <_HasMscorlib Condition="'%(_WasmAssembliesInternal.FileName)%(_WasmAssembliesInternal.Extension)' == 'mscorlib.dll'">true</_HasMscorlib>
+ <_MscorlibPath Condition="'$(_HasMscorlib)' != 'true'">$(MicrosoftNetCoreAppRuntimePackRidDir)lib\net7.0\mscorlib.dll</_MscorlibPath>
+ </PropertyGroup>
+
<Error Condition="'$(_MonoAotCrossCompilerPath)' == '' or !Exists('$(_MonoAotCrossCompilerPath)')"
Text="Could not find AOT cross compiler at %24(_MonoAotCrossCompilerPath)=$(_MonoAotCrossCompilerPath)" />
@@ -284,7 +289,7 @@
<MakeDir Directories="$(_WasmIntermediateOutputPath)" Condition="!Exists('$(_WasmIntermediateOutputPath)')" />
<ManagedToNativeGenerator
- Assemblies="@(_WasmAssembliesInternal)"
+ Assemblies="@(_WasmAssembliesInternal);$(_MscorlibPath)"
RuntimeIcallTableFile="$(_WasmRuntimeICallTablePath)"
IcallOutputPath="$(_WasmICallTablePath)"
PInvokeModules="@(_WasmPInvokeModules)"