Skip to content

Conversation

@radical
Copy link
Member

@radical radical commented Sep 7, 2021

This runtime PR adds support for
relinking the native wasm files during the build (instead of only during
publish).

This required changes to the targets available, and how they can be
used, and thus require changes in the blazor targets to work with that.

The new setup is explained in
https://github.com/radical/runtime/blob/wasm-build/src/mono/wasm/build/README.md
.

This will need to be merged after dotnet/runtime#57556 goes in.

@ghost ghost added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label Sep 7, 2021
@radical
Copy link
Member Author

radical commented Sep 7, 2021

@javiercn @pranavkm @captainsafia The changes here might not be the best way to get the results, so please feel free to change that. But with this, I can build blazorwasm projects with native libraries, which should allow debugging with VS.

@radical
Copy link
Member Author

radical commented Sep 7, 2021

cc @lewing

@radical radical force-pushed the blazor-build-publish-6.0.1 branch from 5ebb9cc to 0e42b90 Compare September 8, 2021 02:12
@javiercn
Copy link
Member

javiercn commented Sep 8, 2021

@radical do you think we can have a meeting to discuss these changes?

I think we can probably find a more streamlined way to integrate these changes but I need a bit more context I think.

[This PR](dotnet/runtime#57556) adds support for
relinking the native wasm files during the build (instead of only during
publish).

This required changes to the targets available, and how they can be
used, and thus require changes in the blazor targets to work with that.

The new setup is explained in
https://github.com/radical/runtime/blob/wasm-build/src/mono/wasm/build/README.md .
@radical radical force-pushed the blazor-build-publish-6.0.1 branch from df88d57 to 382f23d Compare September 10, 2021 04:46
1. Ensure that the PublishDir uses the same case as PublishUrl, to
   workaround a bug where we end up with two directories on linux:
   `Publish`, and `publish`.
   dotnet#20923

2. Add all the `@(WasmNativeAssets)` as candidates, and not just
   `.wasm`

3. And update to track property name change
Copy link
Member

@javiercn javiercn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall changes look good.

I'm signing off to make sure things are unblocked (provided tests pass and trusting manual verification of the AoT scenarios has happened before merging.

@radical
Copy link
Member Author

radical commented Sep 15, 2021

The corresponding runtime PR dotnet/runtime#58913 has merged. Next is to wait for a version bump PR to be opened.

@radical radical changed the title Update BlazorWebAssembly targets to work with updated wasm targets [release/6.0.1xx] Update BlazorWebAssembly targets to work with updated wasm targets Sep 15, 2021
@radical radical merged commit b7bdbca into dotnet:release/6.0.1xx Sep 15, 2021
@radical radical deleted the blazor-build-publish-6.0.1 branch September 15, 2021 15:36
@TanayParikh
Copy link
Contributor

I believe this'll need to be cherry-picked into main as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants