-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document blazor msbuild configuration options #24026
Comments
@mkArtakMSFT ... A bit in-the-weeds for us 😄, but we could do it. These sorts of things I would expect to find in Emscripten and Mono docs. However, I checked, and it's not trivial to cross-link anything for many of them. Definitions either aren't clear, aren't official, or are just code comments or must be surmised from reference source. Anyway, should we mention the following and cross-link the Emscripten doc at https://emscripten.org/docs/optimizing/Optimizing-Code.html?
... and if we are going to cover those: Is it
I hacked up some definitions from Mono repo code comments for the following that might not be correct or complete. I'm going to stop tho before proceeding any further with it. This is just to give us a flavor of what we might try to cover and what we might say. Unfortunately, I can't provide any guidance on when/why they would be set, so we'll need a real PU engineer to flesh out best practices for use if we go further.
... and that's not all of them. I see more of these sorts of properties around the Mono repo, especially per this ... https://github.com/dotnet/runtime/blob/main/src/mono/wasm/build/WasmApp.targets I'm 👂 for your guidance on what to do. |
Thanks!
As a quick note, it would be helpful to say what it means to "enable debugging" in the context of a Blazor app. |
Thanks for bringing this up, @pbiggar. And the compression is already covered in our docs. I don't think there is more to do here. |
@guardrex I don't think there is anything else for you to do here, so removing this from Blazor docs project board. |
Thanks @mkArtakMSFT ... In that case, we can close as well, since we won't track any work that they do in .NET docs for this. |
Just to make sure this doesn't get lost - it was transferred here from another repo. Is there a good repo to transfer this issue to? |
Go to that project SDK topic and use the feedback form there to open (This page button at the bottom). You can cross-link to this from the new issue there ... |
There are a bunch of knobs available to config blazor projects, that I could not find documented anywhere:
EmccCompileOptimizationFlag
- allows you set how the wasm gets compiled<EmccCompileOptimizationFlag>-O0 -s ASSERTIONS=2 -s STACK_OVERFLOW_CHECK=2 -s SAFE_HEAP=1</EmccCompileOptimizationFlag>
EmccCompileLinkFlag
- similar to EmccCompileOptimizationFlag but for linkingBlazorEnableCompression
- on by default, disables the (extremely slow) compression of Blazor assetsThe text was updated successfully, but these errors were encountered: