locked
HOWTO Build WebAssembly for Blazor from command line and attach Debugger to client. RRS feed

  • Question

  • User-2022643801 posted

    Please help,

    How can one build the WebAssembly for a Blazor from the command line.

    To clarify, I want to be outside of Visual Studio in two situations as such:

    1) A Blazor ".CSHTML" file with C# and HTML.

    2) Have a C#/Blazor ".CS" file and a pure ".HTML" file that will have a <SCRIPT src=~~~path-to-web-assembly-for-blazor-code~~~>

    In those two situations, I want to be able to build the WebAssembly that the client side HTML will use, and if possible, to attach a Visual Studio Debugger to the client browser so as to set break points, and be able to step through the C# code as the browser runs the pages.

    Thursday, September 13, 2018 3:05 PM

All replies

  • User475983607 posted

    Blazor is an experiential framework.  See https://blazor.net/index.html and https://blogs.msdn.microsoft.com/webdev/category/blazor/ for general guidance.

    To clarify, I want to be outside of Visual Studio in two situations as such:

    Frankly, I'm not sure it is possible to run the Visual Studio debugger outside the of Visual Studio.

    In those two situations, I want to be able to build the WebAssembly that the client side HTML will use, and if possible, to attach a Visual Studio Debugger to the client browser so as to set break points, and be able to step through the C# code as the browser runs the pages.

    Debugging can be found here https://blazor.net/docs/debugging.html. I'm not sure if this answers your question but the previous link explains how to debug Blazor.

    Thursday, September 13, 2018 3:23 PM
  • User-2022643801 posted

    Thanks for the quick reply.

    By chance, do you know of anyone I can contact to join the Blazor effort?

    Thursday, September 13, 2018 3:25 PM
  • User475983607 posted

    Thanks for the quick reply.

    By chance, do you know of anyone I can contact to join the Blazor effort?

    Perhaps click the link in my previous post and go thought the information.

    Or go to the GIT hub repo as the Blazor is an open source project.

    https://github.com/aspnet/Blazor

    Thursday, September 13, 2018 3:27 PM