This is detailed, step-by-step instructions of getting this set up, with screenshots to help with commands and outcomes. An "idiot's guide" if you like, because I was that idiot.
dotnet does not appear to require a trailing backslash when you define a custom NuGet package cache path via env var NUGET_PACKAGES but Visual Studio does.
@jaredpar I assume the answer is replacing string-concatenated paths with Path.Combine. More typing for more safety. MSBuild files tend to be all about the string concatenated paths. 😔
Am I the only one who wants dotnet format to be usable against just a single file, rather than [<PROJECT | SOLUTION>] ? I'm only working in one file, I really don't want 732 files changed in this commit. We'll get to them when we get to them. #dotnet
@cincura_net running code on another machine (with 16c/32t vs 8c/16t) and the RtlUserThreadStart Self CPU drops to ~1% (from 70%). Could this just be a profiler issue?
@nietras Could be. The screenshot looks like VS profiler, what kind of measurement are you using - sampling or instrumentation? Maybe you could try to collect trace from PerfView…
We've just published a series of 17 (!) posts on common patterns in JSON Schema; lots of these have been culled from questions asked in the JSON-Schema Slack channel.
They are written from the perspective of .NET developers who are used to JSON serialization as a code-first exercise, and want to migrate towards schema-first (with generated code examples from Corvus.JsonSchema).
For the performance, sure, maybe, depending on the situation, but for readability, I find collection.Any() more readable than collection.Count() > 0. #csharp#dotnet
We are proud to announce that @xunit is the May 2024 sponsor project for .NET on AWS! They're generously funding our development efforts for the next 12 months.
@khalidabuhakmeh How is it going so far? Doing mostly Java for now, I keep wishing I had extension methods and Func<A,B,C,D,R>. I drop some “throws Exception” here and there to imply that “shit happens”. I write get_it() and set_it() and weep a little.