Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Commit

Permalink
Add Mono WebAssembly framework assemblies
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS committed Oct 31, 2019
1 parent 1eafba7 commit 901bd50
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Microsoft.AspNetCore.Blazor.Mono/HowToUpgradeMono.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

* In Blazor's `src\mono\incoming\wasm` dir, replace `mono.wasm` and `mono.js` with the new files from Mono's `builds\release` dir
* In Blazor's `src\mono\incoming\bcl`, delete all the `.dll` files (including from the `Facades` subdirectory), and copy in all the new `.dll` files from Mono's `wasm-bcl\wasm` dir. **Note:** We *only* need the `.dll` files, so don't include `.pdb`/`.cs`/`.tmp`/`.stamp` or others. Also you can omit `nunitlite.dll` - we don't need that either.
* In Blazor's `src\mono\incoming\framework`, replace the following files with equivalents from Mono's `framework` dir:
* `WebAssembly.Bindings.dll`
* `WebAssembly.Net.Http.dll`
* `WebAssembly.Net.WebSockets.dll`

The net effect is that you're replacing everything with the newer versions, including adding any new `.dll` files and removing any older `.dll` files that are no longer involved.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<ItemGroup>
<WasmItemsToCopy Include="$(MonoIncomingDir)wasm\**" />
<BclItemsToCopy Include="$(MonoIncomingDir)bcl\**" />
<FrameworkItemsToCopy Include="$(MonoIncomingDir)framework\**" />
<BclWipeSpecFiles Include="$(BclWipeSpecDir)**" />
</ItemGroup>

Expand All @@ -42,8 +43,12 @@
<Copy SourceFiles="@(BclItemsToCopy)" DestinationFiles="@(BclItemsToCopy->'$(MonoDistDir)bcl\%(RecursiveDir)%(FileName)%(Extension)')">
<Output TaskParameter="CopiedFiles" ItemName="_BclFilesCopied" />
</Copy>
<Copy SourceFiles="@(FrameworkItemsToCopy)" DestinationFiles="@(FrameworkItemsToCopy->'$(MonoDistDir)framework\%(RecursiveDir)%(FileName)%(Extension)')">
<Output TaskParameter="CopiedFiles" ItemName="_FrameworkFilesCopied" />
</Copy>
<Exec Command="&quot;$(DotNetTool)&quot; &quot;$(BlazorBuildToolsExe)&quot; ilwipe -s &quot;$(BclWipeSpecDir.TrimEnd('\'))&quot; -i &quot;$(MonoIncomingDir)bcl&quot; -o &quot;$(MonoDistDir)bcl&quot;" />
<Touch Files="@(_BclFilesCopied)" /> <!-- Make incremental builds work -->
<Touch Files="@(_FrameworkFilesCopied)" /> <!-- Make incremental builds work -->
</Target>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<MonoBaseClassLibraryPath>$(BlazorMonoRuntimeBasePath)tools/mono/bcl/</MonoBaseClassLibraryPath>
<MonoBaseClassLibraryFacadesPath>$(BlazorMonoRuntimeBasePath)tools/mono/bcl/Facades/</MonoBaseClassLibraryFacadesPath>
<MonoWasmRuntimePath>$(BlazorMonoRuntimeBasePath)tools/mono/wasm/</MonoWasmRuntimePath>
<MonoWasmFrameworkPath>$(BlazorMonoRuntimeBasePath)tools/mono/framework/</MonoWasmFrameworkPath>
</PropertyGroup>
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 901bd50

Please sign in to comment.