SharpAttributeParser 0.1.4
See the version list below for details.
dotnet add package SharpAttributeParser --version 0.1.4
NuGet\Install-Package SharpAttributeParser -Version 0.1.4
<PackageReference Include="SharpAttributeParser" Version="0.1.4" />
<PackageVersion Include="SharpAttributeParser" Version="0.1.4" />
<PackageReference Include="SharpAttributeParser" />
paket add SharpAttributeParser --version 0.1.4
#r "nuget: SharpAttributeParser, 0.1.4"
#:package SharpAttributeParser@0.1.4
#addin nuget:?package=SharpAttributeParser&version=0.1.4
#tool nuget:?package=SharpAttributeParser&version=0.1.4
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 (>= 0.1.4)
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 | 286 | 4/13/2023 |
| 2.0.0 | 266 | 4/13/2023 |
| 1.1.2 | 291 | 4/11/2023 |
| 1.1.1 | 282 | 4/10/2023 |
| 1.1.0 | 290 | 4/7/2023 |
| 1.0.0 | 285 | 4/6/2023 |
| 0.1.4 | 292 | 4/6/2023 |
| 0.1.3 | 264 | 4/6/2023 |
| 0.1.2 | 278 | 4/6/2023 |
| 0.1.1 | 282 | 4/6/2023 |
| 0.1.0 | 296 | 4/4/2023 |