7 questions from the last 30 days
-3
votes
1
answer
130
views
Console.ReadLine in a Task causing side effects [duplicate]
I want to loop and ask user if he wants to continue. If no answer for a while, loop anyway.
while (true)
{
Console.WriteLine("\nDo you want to continue? (Type 'no' or 'exit' to break, or wait ...
1
vote
1
answer
34
views
Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken throws exception
I'm trying to get a hardware id with a .net console app (target framewotk is net8.0-windows10.0.17763.0).
The code is rather trivial, just
var token = Windows.System.Profile.HardwareIdentification....
1
vote
1
answer
33
views
.NET Serilog ReadFrom Configuration doesn't work
Working version:
private static void SetLogging(WebApplicationBuilder builder)
{
Log.Logger = new LoggerConfiguration()
.Enrich.FromLogContext()
.MinimumLevel.Override("...
0
votes
1
answer
33
views
Filter 'Run' console output in CLion?
I'm working on a program using the CLion IDE, and am running it using the IDE's Run or Debug actions. The program's standard output and error streams are directed to an embedded 'Run' console, ...