SharpAttributeParser 1.1.0
See the version list below for details.
dotnet add package SharpAttributeParser --version 1.1.0
NuGet\Install-Package SharpAttributeParser -Version 1.1.0
<PackageReference Include="SharpAttributeParser" Version="1.1.0" />
<PackageVersion Include="SharpAttributeParser" Version="1.1.0" />
<PackageReference Include="SharpAttributeParser" />
paket add SharpAttributeParser --version 1.1.0
#r "nuget: SharpAttributeParser, 1.1.0"
#:package SharpAttributeParser@1.1.0
#addin nuget:?package=SharpAttributeParser&version=1.1.0
#tool nuget:?package=SharpAttributeParser&version=1.1.0
SharpAttributeParser
Parses C# attributes using the Roslyn API, primarily intended for Analyzers and Source Generators. The parser supports type-arguments, constructor arguments, and named arguments:
[Example<Type>(new[] { 0, 1, 1, 2 }, name: "Fib", Answer = 41 + 1)]
public class Foo { }
Usage
Attributes are parsed using either of the following services:
bool ISemanticAttributeParser.TryParse(ISemanticArgumentRecorder, AttributeData)bool ISyntacticAttributeParser.TryParse(ISyntacticArgumentRecorder, AttributeData, AttributeSyntax)
These services are available as SemanticAttributeParser and SyntacticAttributeParser, or they can be registered with a IServiceCollection:
using SharpAttributeParser.Extensions;
services.AddSharpAttributeParser();
See GitHub for more information.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- SharpAttributeParser.Abstractions (>= 1.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SharpAttributeParser:
| Package | Downloads |
|---|---|
|
SharpAttributeParser.DependencyInjection
Allows the services provided by 'SharpAttributeParser' to be registered with DI-containers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.0-alpha.21 | 102 | 2/11/2024 |
| 9.0.0-alpha.10 | 92 | 2/10/2024 |
| 9.0.0-alpha.8 | 91 | 2/10/2024 |
| 9.0.0-alpha.3 | 95 | 2/6/2024 |
| 8.0.0 | 237 | 2/4/2024 |
| 7.0.1 | 196 | 2/4/2024 |
| 7.0.0 | 209 | 2/4/2024 |
| 6.0.0 | 313 | 12/29/2023 |
| 5.0.3 | 290 | 10/11/2023 |
| 5.0.2 | 327 | 9/1/2023 |
| 5.0.1 | 305 | 8/31/2023 |
| 5.0.0 | 280 | 8/31/2023 |
| 4.0.0 | 287 | 8/30/2023 |
| 3.0.0 | 318 | 8/29/2023 |
| 2.0.1 | 284 | 4/13/2023 |
| 2.0.0 | 264 | 4/13/2023 |
| 1.1.2 | 289 | 4/11/2023 |
| 1.1.1 | 280 | 4/10/2023 |
| 1.1.0 | 288 | 4/7/2023 |
| 1.0.0 | 283 | 4/6/2023 |
| 0.1.4 | 290 | 4/6/2023 |
| 0.1.3 | 262 | 4/6/2023 |
| 0.1.2 | 276 | 4/6/2023 |
| 0.1.1 | 280 | 4/6/2023 |
| 0.1.0 | 294 | 4/4/2023 |