Skip to content

Commit

Permalink
Fix CoreLib path resolution (#39921)
Browse files Browse the repository at this point in the history
Fixes issue described in #39891 (comment).
  • Loading branch information
ViktorHofer committed Jul 25, 2020
1 parent 84eeebb commit b77b242
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/mono/wasm/wasm.targets
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@
<WasmPInvokeModule Include="libSystem.Native" />
<WasmPInvokeModule Include="libSystem.IO.Compression.Native" />
<WasmPInvokeModule Include="libSystem.Globalization.Native" />
<!-- Include CoreLib via the CollectedBuildOutput as it isn't binplaced into the runtime pack at this time. -->
<WasmPInvokeAssembly Include="@(CollectedBuildOutput)"
Condition="'%(CollectedBuildOutput.MSBuildSourceProjectFile)' == '$(CoreLibProject)'" />
<WasmPInvokeAssembly Include="$(MicrosoftNetCoreAppRuntimePackRidLibTfmDir)*.dll" />
</ItemGroup>

<MakeDir Directories="$(ArtifactsObjDir)wasm"/>

<!-- Retrieve CoreLib's targetpath via GetTargetPath as it isn't binplaced yet. -->
<MSBuild Projects="$(CoreLibProject)"
Targets="GetTargetPath">
<Output TaskParameter="TargetOutputs" ItemName="WasmPInvokeAssembly" />
</MSBuild>

<MakeDir Directories="$(ArtifactsObjDir)wasm" />
<PInvokeTableGenerator Modules="@(WasmPInvokeModule)"
Assemblies="@(WasmPInvokeAssembly)"
OutputPath="$(WasmPInvokeTablePath)" />
Expand Down

0 comments on commit b77b242

Please sign in to comment.