jakecarpenter, An update notice reminded me of this plugin for #Jetbrains #Rider. Every #dotnet developer should use a plugin like this. I see this one supports #Resharper too, but if there's another extension like it for Visual Studio running sans-Resharper I'd love to know in order to keep my team in check.
It has become a tool that I don't need much anymore because it has helped me so much in the past to recognize complex code
https://plugins.jetbrains.com/plugin/12024-cognitivecomplexity
maartenballiauw, 9 Things You Didn’t Know About JetBrains Rider’s #NuGet Support 📦
🔍 Search, add, update, remove
📂 Sources and caches
🚀 Find code that uses a package
❤️🔥 And more!We've got some slick UI in place 👀 #dotnet
https://blog.jetbrains.com/dotnet/2024/05/29/9-things-you-didn-t-know-about-jetbrains-rider-s-nuget-support/?utm_medium=social&utm_source=mastodon&utm_campaign=9-things-you-didn-t-know-about-jetbrains-rider-s-nuget-support
bradwilson, (edited ) This is super duper extra important.
C# Nullable Reference Types are a compile-time thing, not a runtime thing. "string?" and "string" are both just "string" at runtime.
This means:
Always guard against your users passing
null
even for types that shouldn't allow it, because it's not a runtime guarantee.You can't create overloads that differ only on nullability (i.e., Method(string) vs. Method(string?)) because they're the same type at runtime.
Turious, If I have a simple C# 4.8 application and I wanted to add a way to feed it instructions remotely, how would I do that? This will be a program running fullscreen that needs full control of the mouse/keyboard.
All API tutorials I can find either describe .NET Core or controller options I do not have available because this is a basic project.
andrewlock, Blogged: Blocking primary constructor member capture using a Roslyn Analyzer
https://andrewlock.net/blocking-primary-constructor-member-capture-using-an-analyzer/
In this post I describe a Rosyln analyzer you can use to enforce that primary constructors are only used for initialization and never to capture as fields
andrewlock, @khalidabuhakmeh THANK YOU 😂
khalidabuhakmeh, @andrewlock In retrospect, I wonder if having similar syntax to records but different semantics is a landmine waiting for folks to step on. 🤔
Guess it's too late now. C'est La Vie.
khalidabuhakmeh, It’s nice to know I live rent-free in the minds of #dotnet folks, so much so that they felt the need to come by the BUILD booth to tell our JetBrains folks about me. 😅
Anyways, xoxo
jakecarpenter, @khalidabuhakmeh it better have been #dropthedot support
khalidabuhakmeh, @jakecarpenter Perhaps… it is annoying when you know someone is right. :P
meziantou, How to test a Roslyn analyzer #dotnet #roslyn https://www.meziantou.net/how-to-test-a-roslyn-analyzer.htm?utm_medium=social&utm_source=mastodon
bradwilson, @meziantou Criminal, if only someone had told them how to fix this 😭😂
yoh, A new article just dropped! ✨
This time I decided to go with the analysis based on the work initially made by @joaofbantunes. Be ready to see some assembly code generated by the JIT compiler, see some #dotnet source code and finally find if strong typing means poor performance or not.
pdebruin, Less nano seconds and allocations just made me smile 🙂 at an #MSBuild video where @shanselman and @stephentoub geek out over improving #performance of string operations in .NET libraries. #MSBuild YouTube video https://www.youtube.com/watch?v=TRFfTdzpk-M #dotnet
If you like this highly technical content on .NET, check out their series https://www.youtube.com/watch?v=R-z2Hv-7nxk&list=PLdo4fOcmZ0oX8eqDkSw4hH9cSehrGgdr1
maartenballiauw, We’re hosting the .NET Days Online again, and are looking for great sessions! #dotnet #cfp #JetBrains
If you’re available on September 25 or 26, and have a topic you’d like to present on, check out our Call for Speakers 👉
https://blog.jetbrains.com/dotnet/2024/05/02/jetbrains-dotnet-days-online-2024/?utm_medium=social&utm_source=mastodon&utm_campaign=jetbrains-dotnet-days-online-2024
xunit, We just shipped v2 Core Framework 2.8.1, Analyzers 1.14.0, and Visual Studio adapter 2.8.1.
Release notes:
https://xunit.net/releases/v2/2.8.1
https://xunit.net/releases/analyzers/1.14.0
https://xunit.net/releases/visualstudio/2.8.1
bradwilson, Anybody know when we get the #Roslyn 4.10 NuGet packages (like Microsoft.CodeAnalysis)?
I'm assuming they're going to follow the "even" pattern and declare 17.10 as LTSC, which means I will want to officially support Roslyn 4.10. Both of these pages are currently out of date:
https://learn.microsoft.com/en-us/visualstudio/productinfo/vs-servicing
https://learn.microsoft.com/en-us/visualstudio/extensibility/roslyn-version-support?view=vs-2022
khalidabuhakmeh, (edited ) @bradwilson They are available in prerelease right now. I just added them to a local language server.
bradwilson, @khalidabuhakmeh I know, but I'm not shipping @xunit analyzers linked against a pre-release library.
xoofx, I'm sold on building my .NET NativeAOT Vulkan prototype on top of wlroots https://gitlab.freedesktop.org/wlroots/wlroots instead of going raw with DRM/KMS. Any folks that experienced wlroots?
Gonna have to create a binding for this one though, before I can start anything, but that will be hopefully a lot less work than dealing directly with DRM/KMS 😅
xoofx, Just updated my Vulkan bindings https://github.com/XenoAtom/XenoAtom.Interop/tree/main/src/vulkan
I have used the vk.xml registry & parsed the man docs to generate a complete Vulkan API with intellisense! 🚀
I took also the opportunity to add overloads in/out parameters, ReadOnlySpan/Spans and make optional params with default value. Lots of codegen, but that was worth it 😎
The vulkan_core.generated.cs is over 90,000 lines of C# code 🙈
Next step: Bare metal Vulkan C# NativeAOT on top of the Linux kernel + libdrm 😱
joaofbantunes, I'm such an idiot 🤦♂️
For years installing #DotNet SDKs manually when dnvm is a thing. So much better!
cincura_net, Blogged: Entity Framework Core 8 provider for Firebird is ready
cwoodruff, @cincura_net I migrated my demo database to @firebirdsql
https://elk.zone/mastodon.social/@cwoodruff/112507653238779538
cincura_net, Czech @cwoodruff @firebirdsql Nice.
gregsdennis, Just a reminder that if you'd like to promote continued development of JSON tech like #jsonschema #jsonpath and others in #dotnet, please consider sponsoring the #maintainers.
https://github.com/sponsors/gregsdennis
https://github.com/gregsdennis/json-everythingAlso goes for any #opensource project.
bradwilson, I've been noticing whole-machine slow downs whenever I heavily use my Dev Drive (for example, building source) that are just unacceptable.
A common example is I'll start a full build in Visual Studio and then go to type in Windows Terminal and everything I type will be delayed by multiple seconds. Even pasting will show only a few characters at a time.
So, back to raw SSD and (sigh) NTFS for now. #DevDrive #dotnet
maartenballiauw, @bradwilson @SmartmanApps Found it faster but a minor difference. Seems to have more to do with Defender being async on dev drive
bradwilson, @maartenballiauw @SmartmanApps I always exclude my source folder from Defender.
joaofbantunes, My company just made #JetBrainsRider the official IDE for #DotNet development 😍
I don't have anything against VS, but I just enjoy that we really make use of the available options, instead of being completely locked into everything Microsoft.
We build applications using .NET, Java and other stacks, deploy to Kubernetes on AWS, use Kafka, plus a bunch of other technologies, all working nicely together, without using everything from a single company. Love this!
joaofbantunes, @khalidabuhakmeh didn't do anything though, but thought about sharing 🙂
khalidabuhakmeh, @joaofbantunes Don’t be humble. You did your part. You showed folks the joy of using Rider. That’s all it takes. 😅
khalidabuhakmeh, Should the #dotnet community read this list in an order of priority?
dolanor, French @rockylhotka @khalidabuhakmeh @elan @redzimskidev @KirillOsenkov @bradwilson
I don't know if it's things like that you're thinking about about, but have you heard about https://go-app.dev/ ?
too_little_caffeine, French @dolanor @rockylhotka @khalidabuhakmeh @elan @redzimskidev @KirillOsenkov @bradwilson
That's pretty cool! I've been keeping my eye on Tauri, personally.
khalidabuhakmeh,
khalidabuhakmeh, @piofthings I will say that in your example, pricing/cost is predictable.
Azure pricing is very difficult to predict, that’s why they have hard cutoff features in cloud environments to keep you from bankrupting yourself.
No one every went bankrupt adding a new user to their Bitbucket account. 😅
piofthings, @khalidabuhakmeh oh yeah, that was just the starter! AWS has a Jupyter notebook thingy! Someone started an instance and closed it when done! Two months and $$$ later, apparently that started some neptune DB instance that was still running! Ditto with an LLM thing. Service started, project done, Service stopped! Two months later something called OpenSearch is costing $$$!!!
davidpine, 📢 .NET Aspire is now generally available!
🪄 App Host (Orchestrator)
📈 Developer Dashboard
🧩 Components
🚀 Deployment
🔍 Service Discovery
🤓 C# > YAML
📏 Telemetry,
🔌 Framework Integrations
🛠️ Tooling & Templates
✅ Extensiblehttps://learn.microsoft.com/dotnet/aspire
.NET Aspire dashboard displaying the Metrics page selected with a "webfrontend" resource's instrumentation/meter for System.Net.Http, as a graphical representation of HTTP request durations.
An Azure Developer CLI (azd) command diagram used to help depict the process, step by step, by which a .NET Aspire app is deployed to Azure.
laimis, Oh, that's interesting, native OpenAPI docs support in asp.net.
maartenballiauw, A fresh live stream is coming up! Oren Eini will be joining us:
📺 Building a Database Engine in C# and .NET
🗣 Speaker: Oren Eini📅 Jun 18, Tue, 8pm EDT / 10am AEST / 5pm PDT
🤗 Open to all, welcome!#dotnet #csharp #ravendb
https://blog.jetbrains.com/dotnet/2024/05/16/oren-eini-building-a-database-engine-in-csharp-and-dotnet-june-18th-livestream/?utm_medium=social&utm_source=mastodon&utm_campaign=oren-eini-building-a-database-engine-in-csharp-and-dotnet-june-18th-livestream
khalidabuhakmeh,
khalidabuhakmeh, @range_marten It’s been 2 hours, and I’m ready!
Asymmetricblue, @khalidabuhakmeh Depends if I am starting something new or not.
If not, pull latest, run all tests, then start changes.
I typically start new things from opinionated templates that I’ve built.