is it possible to export a console app as an html script of some sort
I just made a console app in c# that converts a bunch of YouTube urls to mp3 files and I wanted to put it on my website in some way, does anyone know if that's possible to do for console apps/other app types?
14 Replies
Well, you can publish it to an
.exe
and whatever Linux and Mac use, and have people download it
You could create an ASP.NET Core API with this functionality and call it with JS
Could make a Blazor WASM project so it coulc maybe run entirely in the browserWould that require me to host it?
The last one sounds like what I want
Yes
Ok so how would I make a blazor wasm project?
dotnet new blazorwasm
Or pick this template when creating a new project in VSCool I'll try it in a bit
If you want it up 24/7 online then yes
Which is what I want so yeah
I'm just gonna do the blazor thingy since I already have a github site which will be easier to do than making a whole api
I don't think you can use github sites to publish a Blazor app
'Course you can
Blazor WASM that is
Blazor Server or Hybrid won't work
It just does it as an html right?
WASM, as the name implies
I thought github sites only allows like really basic html, CSS and js
Yes
Blazor Wasm compiles the C# code to a Web Assembly bundle
That gets loaded with a bit of boilerplate JS
All static assets