Re:Spectre.console – Pretty console apps in .NET
by brtkdotse on Tuesday November 10, 2020 @03:05PM
(#25051098)
It’s not .Net 2.0, it’s .Net _Standard_ 2.0 ¯\_(ツ)_/¯
Re:Spectre.console – Pretty console apps in .NET
by rkagerer on Tuesday November 10, 2020 @03:14PM
(#25051248)
Whoops! Nevermind. Thanks for catching my mistake.
Re:Spectre.console – Pretty console apps in .NET
by brtkdotse on Tuesday November 10, 2020 @04:04PM
(#25051888)
It's even better, you can build it on Linux/MacOS now.
Re:Spectre.console – Pretty console apps in .NET
by rkagerer on Tuesday November 10, 2020 @09:26PM
(#25054890)
Yeah I'm excited about that. In terms of build targets, any idea how far back you will find platforms that run the native executables?
This talks about RID's: https://docs.microsoft.com/en-us/dotnet/core/rid-catalog
EDIT: Looks like Win 7 SP1 is the earliest supported by .NET Core: https://docs.microsoft.com/en-us/dotnet/core/install/windows...
Re:Spectre.console – Pretty console apps in .NET
by muststopmyths on Tuesday November 10, 2020 @04:10PM
(#25051961)
Does it emulate support for ANSI sequences on Windows < 10 ?
Edit: to clarify, I'm curious as to how it works.
Re:Spectre.console – Pretty console apps in .NET
by happypatrik on Tuesday November 10, 2020 @08:00PM
(#25054334)
It depends since it's really up to the terminal. If the terminal don't support ANSI escape sequences, Spectre.Console will fall back to using the System.Console API with the standard 4-bit color palette. Everything will continue working, but less pretty of course.
It will run on Server 2003 R2 through Windows 7 without the need to install any framework beyond what comes out of the box in the OS. i.e. Just copy the EXE and run it.
And 2.0 is the last version of the framework still installable on Windows 98.
Unfortunately Windows 8 and 10 would need you to install the 3.5 framework (which supports running 2.0 apps... yeah, I know, confusing).
I used to write all my little command line utilities in this version (with a theoretical exception if there was a really pressing need for new language features, but that didn't tend to occur for those kind of utilities).
Of course not as lightweight as a Russinovich or Sofer style single-EXE done in C or whatever, but if you're using NET Framework it's not a bad choice of version.