ReferenceAssemblyAnnotator
IL weaver to add nullability annotations to .NET reference assemblies (by tunnelvisionlabs)
IsExternalInit
A source code only package which allows you to use C# 9's init and record features in older target frameworks like .NET Standard 2.0 or the "old" .NET Framework by providing a polyfill for the IsExternalInit class. (by manuelroemer)
ReferenceAssemblyAnnotator | IsExternalInit | |
---|---|---|
6 | 7 | |
70 | 94 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | over 1 year ago | |
C# | C# | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
ReferenceAssemblyAnnotator
Posts with mentions or reviews of ReferenceAssemblyAnnotator.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-08.
-
Why would you use Windows containers ?
https://github.com/manuelroemer/Nullable (backport nullable attributes so you can use things like [NotNullWhen]). Alternatively, https://github.com/tunnelvisionlabs/ReferenceAssemblyAnnotator/ is even niftier, as it gives you .NET 5's annotations as well. So the compiler tells you whether a Dictionary.TryGetValue result is nullable or not based on annotations that didn't exist in .NET Standard 2.0.
-
Introducing: EasyCsv Dotnet
If you need the attributes, reference https://github.com/manuelroemer/Nullable or https://github.com/tunnelvisionlabs/ReferenceAssemblyAnnotator. The latter is bigger, but retroactively adds nullability annotations to runtime references (such as Dictionary.TryGetValue).
-
How to use C# 11 features in .NET 6 or older versions (even .NET Framework 2.0)
EDIT: A reader reached me about this cool package that partially solves this problem by injecting nullable reference type annotations in CLR's methods of some assemblies (check the docs for more details): ReferenceAssemblyAnnotator.
This helps: https://github.com/tunnelvisionlabs/ReferenceAssemblyAnnotator
-
The MVVM Pattern revisited with the MVVM Community Toolkit 8.0
Can't use 6.0 on that solution because https://github.com/tunnelvisionlabs/ReferenceAssemblyAnnotator/issues/89. But I did try 6.0 on a smaller project, where indeed, the warning seems to only appear if I downgrade to the 5.0.400 SDK. With 6.0.400, I get… a build error instead. With that workaround, it works.
-
Is there a way to change my C# language version without editing the project file?
https://github.com/tunnelvisionlabs/ReferenceAssemblyAnnotator to get Nullable Reference Type annotations from .NET 5 backported to Fx
IsExternalInit
Posts with mentions or reviews of IsExternalInit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-09.
-
Multi-targeted library, with a recent Language Version
You can also just reference the https://github.com/manuelroemer/IsExternalInit NuGet package.
-
Where’s C# headed? - Mads Torgersen - NDC Copenhagen 2022
init only properties (likely to come up if you use records) - you can either use the IsExternalInit nuget package or manually define the attributes - either way, the feature works perfectly fine
-
Is there a way to change my C# language version without editing the project file?
…and a NuGet reference to https://www.nuget.org/packages/IsExternalInit, I can then do public record Foo(string s); and have it build.
-
Ladies and gentlemen, C#. A package, you guessed it, for C#.
You only need https://github.com/manuelroemer/IsExternalInit for that (and to set LangVersion).
-
Do you apply new C# features to existing code after upgrading .NET version?
Even for .NET Framework code, I tend to use recent C# versions. I reference https://github.com/jnm2/ReferenceAssemblyAnnotator to get nullable support and https://github.com/manuelroemer/IsExternalInit for records, and that takes care of most of the features I care about.
- When do you use C#9 Records?
-
Can I use C#9.0 with ASP.NET Core 3.1?
features that require BCL additions. Since you're on the older BCL, those will need to be backported. For example, to use init; and record, you can use https://github.com/manuelroemer/IsExternalInit.
What are some alternatives?
When comparing ReferenceAssemblyAnnotator and IsExternalInit you can also consider the following projects:
MSBuild.SDK.SystemWeb - This MSBuild SDK is designed to allow for the easy creation and use of SDK (shortform) projects targeting ASP.NET 4.x using System.Web.
UtinyRipper - GUI and API library to work with Engine assets, serialized and bundle files