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

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.

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

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

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

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

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/

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

🫡 🪦 🌹 #F

andrewlock, to CSharp
@andrewlock@hachyderm.io avatar

Blogged: An introduction to primary constructors in C#12

https://andrewlock.net/an-introduction-to-primary-constructors-in-csharp-12/

In this post I introduce C#12 primary constructors, describe the various ways to use them and how they work behind the scenes.

maartenballiauw, to azure
@maartenballiauw@mastodon.online avatar

We just released the Toolkit for Rider v4 Preview 🌤️

🔑 Sign in using az cli, …
⚡️ Azure Functions
🌍 Web Apps
🗺️ Resource explorer
👩‍💻 SQL
🗄️ Storage emulator

As a rewrite of the current plugin, we’d like to hear your feedback!
https://blog.jetbrains.com/dotnet/2024/05/14/azure-toolkit-for-rider-v4-0-preview-request-for-feedback/?utm_medium=social&utm_source=mastodon&utm_campaign=azure-toolkit-for-rider-v4-0-preview-request-for-feedback

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I see folks are having a normal week. 🤣

khalidabuhakmeh, to webassembly
@khalidabuhakmeh@mastodon.social avatar

Spicy take, but I think will save .

cwoodruff, to CSharp
@cwoodruff@mastodon.social avatar

I'm working on chapters 7 and 8 of the C# Networking Book. I hope to have Chapter 7, Data Serialization Techniques, out early next week and Chapter 8, Network Performance Optimization, out the following week.

With Chapter 8 finished, I will have the basics done.

#csharp #dotnet

https://csharp-networking.com/

maartenballiauw, to dotnet
@maartenballiauw@mastodon.online avatar

Experiment... As the "search engine" behind a 5000-records auto complete API is an LIKE query. Loading 60000 more records into that table made the API endpoint slow (6 seconds to show autocomplete!)

How would you improve this autocomplete?

cincura_net, to dotnet
@cincura_net@mas.to avatar

Blogged: Writing “string.IsNullOrEmpty” using pattern matching and comparing the resulting code

https://www.tabsoverspaces.com/id/233939

WetHat, to HowTo
@WetHat@fosstodon.org avatar

Advanced C# Tricks for Developers 🔥 | Medium

Ten methods to boost code efficiency and readability for experienced developers.

https://medium.com/@kmorpex/10-advanced-c-tricks-for-experienced-developers-26a48c6a8c9c

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