CoreFX
Our great sponsors
.NET Compiler Platform ("Roslyn") Analyzers | CoreFX | |
---|---|---|
11 | 15 | |
1,521 | 17,856 | |
1.4% | - | |
9.8 | 0.0 | |
5 days ago | about 1 year ago | |
C# | ||
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
.NET Compiler Platform ("Roslyn") Analyzers
-
.NET Compiler Platform ("Roslyn") Analyzers VS Metalama - a user suggested alternative
2 projects | 7 Dec 2023
-
Microsoft.CodeAnalysis.BannedApiAnalyzers
See the following page
- What does a mature dotnet pipeline look like?
-
I wrote useful Microsoft ILogger<TCategoryName> analyzer, which helps you to find mistakes in your code
The other comment here is probably a good start. There may be some guidance over at https://github.com/dotnet/roslyn-analyzers on how to write high-performance analyzers. But your code is simple enough that I'm not sure it's a huge concern.
- Welcome to C# 11
- Something I've wanted for years... DisposeNotRequiredAttribute: Add way to mark IDisposable classes as not needing to be disposed
- Which linters are you using for CI environments?
-
Errors and suspicious code fragments in .NET 6 sources
Moreover, in the Roslyn Analyzers issue tracker, was created the task of developing a new diagnostic that would detect such cases.
-
Improving your code for style, quality, maintainability, design... with Roslyn Analyzers
Microsoft.CodeAnalysis.PublicApiAnalyzers: Helps library authors monitor changes to their public APIs (more info).
-
Library authors, be really careful with Type.GetMethod(string). It is a backwards compatibility nightmare.
Like the other person said, one way is to look at code analyzers, e.g. https://github.com/dotnet/roslyn-analyzers/blob/a0522afd52b25ad211298e308fd5bbc7734865e0/src/PerformanceSensitiveAnalyzers/CSharp/CodeFixes/AvoidAllocationWithArrayEmptyCodeFix.cs
CoreFX
- Why TLS is better without STARTTLS (2021)
-
Can anyone help with this exception i'm getting on entering the astronaut complex?
System.Buffers v4.0.3.0 / v4.6.28619.01 @BuiltBy: dlab14-DDVSOWINAGE069 @Branch: release/2.1 @SrcCode: https://github.com/dotnet/corefx/tree/7601f4f6225089ffb291dc7d58293c7bbf5c5d4f / v4.6.28619.01
-
Is there a way to check if every value in an array is set to the same value?
You’re right. Thanks for correcting me. The logic of applying the predicate for the two are inversions of each other, and they are even implemented in the same file: AnyAll.cs.
-
Shopify Invests in Research for Ruby at Scale
- EF Core is not MSSQL first. EF Core is an abstraction layer and is in no way tied to Sql Server. In fact, Microsoft's own getting started tutorial uses Sqlite (1). I've personally used the Postgres drivers in production and they are as good/production-ready as Microsoft's SQL library for EF Core.
- "Many libraries ship with two implementations..." I've yet to come across these "many" libraries in the 5 years since I've been building services with .NET Core.
"The community is really culty" - I'm not sure where this is coming from. It's hard to refute such vague criticisms.
- "It's practically open source in name only" - Here is the base class library source: https://github.com/dotnet/corefx/releases
1. https://docs.microsoft.com/en-us/ef/core/get-started/overvie...
-
C# Coding Standards
Dotnet foundation publishes their C# coding style along with an editorconfig and some tooling to support it.
- Is the expandoobject implemented in C# and is it possible to define custom member access operator logic?
- Good C# Source Code
- Solution Structure
-
Errors and suspicious code fragments in .NET 6 sources
I created the bug report on GitHub. After that, the .NET development team fixed some code fragments described in the article. Among them - the errors with interpolated strings. The corresponding pull request.
What are some alternatives?
StyleCop - Analyzes C# source code to enforce a set of style and consistency rules.
ASP.NET Boilerplate - ASP.NET Boilerplate - Web Application Framework
CodeMaid - CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
DotNetty - DotNetty project – a port of netty, event-driven asynchronous network application framework
Gendarme - Gendarme is a extensible rule-based tool to find problems in .NET applications and libraries. Gendarme inspects programs and libraries that contain code in ECMA CIL format (Mono and .NET) and looks for common problems with the code, problems that compiler do not typically check or have not historically checked.
ABP - Open Source Web Application Framework for ASP.NET Core. Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET and the ASP.NET Core platforms. Provides the fundamental infrastructure, production-ready startup templates, application modules, UI themes, tooling, guides and documentation.
BenchmarkDotNet - Powerful .NET library for benchmarking
Mono - Mono open source ECMA CLI, C# and .NET implementation.
NsDepCop - NsDepCop is a static code analysis tool that helps to enforce namespace dependency rules in C# projects. No more unplanned or unnoticed dependencies in your system.
Spring.Net - Spring Framework for .NET
App.Metrics - App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.
Uno Platform - Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.