Skip to content

Releases

v1.0.0

Choose a tag to compare

@vfofanov vfofanov released this 06 Oct 03:47
ac2915b

First release of DragoAnt.Roslyn.Shared.Sources: source-only helpers compiled internal into each Roslyn analyzer, source generator and code fix that references the package. Requires Microsoft.CodeAnalysis.CSharp 5.0.0 or later; the sources compile on netstandard2.0.

Added

  • Parts: Common (always), Generators and CodeFixes, picked with DragoAntRoslynSharedParts; files linked under .da.shared/<Part>/ in Solution Explorer; DragoAntRoslynSharedSourceRoot compiles them from a local checkout instead (consuming).
  • Common: SyntaxHelpers (GetTargetParameter, TryGetConstantString, HasAttribute by symbol or metadata name, GetFullMetadataName), LocationHelpers (InStringLiteral, InText, InAdditionalText), DiagnosticHelpers (Create, Guard, Guarded).
  • Generators: EquatableArray<T> with ToEquatableArray().
  • CodeFixes: LiteralRewriter (ReplaceStringLiteral, ReplaceStringLiteralAsync).
  • Warnings DARS001 (unknown part) and DARS002 (a source root without Common).
  • Every file starts with // <auto-generated/> and #nullable enable: a consumer's own style and quality analyzers skip it, nullable analysis and RS1035 still apply.

Install: dotnet add package DragoAnt.Roslyn.Shared.Sources --version 1.0.0 with PrivateAssets="all" — see consuming.

v1.0.0-beta.1

v1.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@vfofanov vfofanov released this 06 Oct 03:26
1dfc5f1

First release of DragoAnt.Roslyn.Shared.Sources: source-only helpers compiled internal into each Roslyn analyzer, source generator and code fix that references the package. Requires Microsoft.CodeAnalysis.CSharp 5.0.0 or later; the sources compile on netstandard2.0.

Added

  • Parts: Common (always), Generators and CodeFixes, picked with DragoAntRoslynSharedParts; files linked under .da.shared/<Part>/ in Solution Explorer; DragoAntRoslynSharedSourceRoot compiles them from a local checkout instead (consuming).
  • Common: SyntaxHelpers (GetTargetParameter, TryGetConstantString, HasAttribute by symbol or metadata name, GetFullMetadataName), LocationHelpers (InStringLiteral, InText, InAdditionalText), DiagnosticHelpers (Create, Guard, Guarded).
  • Generators: EquatableArray<T> with ToEquatableArray().
  • CodeFixes: LiteralRewriter (ReplaceStringLiteral, ReplaceStringLiteralAsync).
  • Warnings DARS001 (unknown part) and DARS002 (a source root without Common).
  • Every file starts with // <auto-generated/> and #nullable enable: a consumer's own style and quality analyzers skip it, nullable analysis and RS1035 still apply.

Install: dotnet add package DragoAnt.Roslyn.Shared.Sources --version 1.0.0-beta.1 with PrivateAssets="all" — see consuming.