tomasekeli, to dotnet

7 reached end-of-support 5 days ago

if you're still running it - time to upgrade

https://devblogs.microsoft.com/dotnet/dotnet-7-end-of-support/

anthony_steele, to CSharp
@anthony_steele@dotnet.social avatar

Automating #formatting in #csharp code on commit with #dotnet format, #git and #Husky .NET

https://www.anthonysteele.co.uk/HuskyAutoformat

When I wrote this about a month ago, I didn't geta round to linking it from the index https://www.anthonysteele.co.uk/

So, now I have.

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.

bradwilson, to dotnet
@bradwilson@mastodon.social avatar

Pro-tip for the day:

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.

Good:
NUGET_PACKAGES=X:.nuget\packages\

Bad:
NUGET_PACKAGES=X:.nuget\packages

jaredpar,
@jaredpar@hachyderm.io avatar

@bradwilson we had to start normalizing away the \ in the compiler to avoid this problem

bradwilson,
@bradwilson@mastodon.social avatar

@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. 😔

StevenJV, to dotnet
@StevenJV@curmudgeon.cafe avatar

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.

bradwilson,
@bradwilson@mastodon.social avatar

@JoeyRobichaud @StevenJV Just FYI, dotnet format does not support --folder, that's the older dotnet-format.

The performance difference between the two is staggering to the point of dotnet format being unusable.

bradwilson,
@bradwilson@mastodon.social avatar

@KirillOsenkov @JoeyRobichaud @StevenJV Seems like I should investigate using CSharpier... Thanks!

nietras, to dotnet
@nietras@mastodon.social avatar

What options are there to improve Parallel.For runs when WorkerThreadStart is taking 70% of CPU usage?

#dotnet #csharp

nietras,
@nietras@mastodon.social avatar

@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?

cincura_net,
@cincura_net@mas.to avatar

@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…

cincura_net, to dotnet
@cincura_net@mas.to avatar

Add scalar evolution analysis and do IV widening based on it

https://github.com/dotnet/runtime/pull/97865

#dotnet #jit #ryujit #performance #assembly

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I got a guided tour of the #NuGet server room today. Cutting edge! I was told not to touch the bulbs. #dotnet

dc,
@dc@social.advancedsoftware.engineering avatar
khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
cincura_net, to dotnet
@cincura_net@mas.to avatar

.NET Data Community Standup - Harnessing the Power of Firebird in .NET

https://www.youtube.com/live/p7yNwRiJR2M?si=6a3W1B3KUSf1gc_t

ythos, to dotnet
@ythos@dotnet.social avatar

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).

https://endjin.com/blog/2024/05/json-schema-patterns-dotnet-data-object

#dotnet #json #jsonSchema

georgekinsman, to blazor
@georgekinsman@hachyderm.io avatar

peeps, is it possible to use LinkGenerator to generate links to Razor Component Pages (i.e. a .razor file with a @page attribute)?

From what I can tell there's no way to add an EndpointNameMetadata to a razor page, which means the LinkGenerator can't do its thing.

Surely this is a common scenario - is everyone just hardcoding their page URL's?

cc @khalidabuhakmeh

jchannon,
@jchannon@hachyderm.io avatar

@khalidabuhakmeh @georgekinsman @egil just as a heads up this is full Blazor SSR.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jchannon @georgekinsman @egil Hmmm… I genuinely don’t know. All this stuff still seems like a WIP to me.

jukka, to CSharp
@jukka@dotnet.social avatar

Just saw this C# rule, and I have to say I disagree: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1860

For the performance, sure, maybe, depending on the situation, but for readability, I find collection.Any() more readable than collection.Count() > 0.
#csharp #dotnet

cincura_net,
@cincura_net@mas.to avatar
xunit, to dotnet
@xunit@dotnet.social avatar

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.

Check out their Open Source Software Fund: https://github.com/aws/dotnet-foss

#dotnet #oss #foss #aws

poppastring, to dotnet
@poppastring@dotnet.social avatar

A brief but important reminder that .NET 7 goes out of support today. ⚠️

If like me you were using the .NET 6 LTS, that goes out of support later this year in November.

I recently upgraded my main projects to .NET 8 to ensure I get the latest security & quality of life fixes. 🎉

More details here: https://dotnet.microsoft.com/platform/support/policy/dotnet-core

khalidabuhakmeh, to Meme
@khalidabuhakmeh@mastodon.social avatar

👏 This is an appreciation for @simoncropp and everything he does for as an ecosystem.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Don't panic folks, but I do now. Give it a try, is pretty nice. Also, there's . 😄

🙏 boosts appreciated

https://blog.jetbrains.com/idea/2024/05/easy-hacks-how-to-use-java-streams-for-working-with-data/

zpqrtbnk,
@zpqrtbnk@hachyderm.io avatar

@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.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@zpqrtbnk honestly not too bad. Yes C# has some features that are nice, but they're not as missed as I thought they would be.

Most of the good ones exist in some capacity.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • ethstaker
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • rosin
  • mdbf
  • kavyap
  • DreamBathrooms
  • provamag3
  • ngwrru68w68
  • Durango
  • modclub
  • cubers
  • khanakhh
  • Leos
  • tacticalgear
  • cisconetworking
  • vwfavf
  • tester
  • anitta
  • normalnudes
  • JUstTest
  • All magazines