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.
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.
J-S-B
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.
Member
3 Points
107 Posts
HOWTO Build WebAssembly for Blazor from command line and attach Debugger to client.
Sep 13, 2018 03:05 PM|J-S-B|LINK
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.
All-Star
53631 Points
23985 Posts
Re: HOWTO Build WebAssembly for Blazor from command line and attach Debugger to client.
Sep 13, 2018 03:23 PM|mgebhard|LINK
Blazor is an experiential framework. See https://blazor.net/index.html and https://blogs.msdn.microsoft.com/webdev/category/blazor/ for general guidance.
Frankly, I'm not sure it is possible to run the Visual Studio debugger outside the of Visual Studio.
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.
Member
3 Points
107 Posts
Re: HOWTO Build WebAssembly for Blazor from command line and attach Debugger to client.
Sep 13, 2018 03:25 PM|J-S-B|LINK
Thanks for the quick reply.
By chance, do you know of anyone I can contact to join the Blazor effort?
All-Star
53631 Points
23985 Posts
Re: HOWTO Build WebAssembly for Blazor from command line and attach Debugger to client.
Sep 13, 2018 03:27 PM|mgebhard|LINK
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