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
Angius
Angius5mo ago
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 browser
Protogen Posting
Protogen PostingOP5mo ago
Would that require me to host it? The last one sounds like what I want
Angius
Angius5mo ago
Yes
Protogen Posting
Protogen PostingOP5mo ago
Ok so how would I make a blazor wasm project?
Angius
Angius5mo ago
dotnet new blazorwasm Or pick this template when creating a new project in VS
Protogen Posting
Protogen PostingOP5mo ago
Cool I'll try it in a bit
The Fog from Human Resources
If you want it up 24/7 online then yes
Protogen Posting
Protogen PostingOP5mo ago
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
The Fog from Human Resources
I don't think you can use github sites to publish a Blazor app
Angius
Angius5mo ago
'Course you can Blazor WASM that is Blazor Server or Hybrid won't work
Protogen Posting
Protogen PostingOP5mo ago
It just does it as an html right?
Angius
Angius5mo ago
WASM, as the name implies
The Fog from Human Resources
I thought github sites only allows like really basic html, CSS and js
Angius
Angius5mo ago
Yes Blazor Wasm compiles the C# code to a Web Assembly bundle That gets loaded with a bit of boilerplate JS All static assets
Want results from more Discord servers?
Add your server