C
C#•3y ago
ero

Progress bar in console app to show download progress

Wanting to create a very simple console application (.NET 7) which downloads a few files and installs them on the user's machine (less "install" and moreso "place a self-contained executable in a directory they choose"). What're my options to create a progress bar for the download process?
9 Replies
Becquerel
Becquerel•3y ago
depends on your framework, iirc WPF has a built in <ProgressBar/> control as for how to wire it up, look into the IProgress<T> interface
ero
eroOP•3y ago
console app
Becquerel
Becquerel•3y ago
oh, that's what i get for not reading 🙂 seems like something spectreconsole would offer?
ero
eroOP•3y ago
never messed with it, i really need to check it out $spectre
MODiX
MODiX•3y ago
Spectre.Console is a .NET library that allows for easy creation of console UIs, text formatting in the console, and command-line argument parsing. https://spectreconsole.net/
Spectre.Console - Welcome!
Spectre.Console is a .NET Standard 2.0 library that makes it easier to create beautiful console applications.
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ero
eroOP•3y ago
I'm honestly not super sure how to even do this with downloading a file... Not to mention that another file I'm downloading is a zip of fonts, which I'll have to unzip and install, all preferably in memory So uh, probably just not possible
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ero
eroOP•3y ago
can i force a specific "terminal" to open when a user opens my console app? asking because i wanna do something in spectre, and obviously not everything works in cmd that does in the modern terminal
Want results from more Discord servers?
Add your server