dotnet/roslyn-sdk

No new package on NuGet.org

agocke opened this issue · 8 comments

It's been over a year since this package had updates on NuGet.org, but the source generator APIs have undergone significant revisions, notably the introduction of incremental generators.

This package should have an update published ASAP.

Incremental generators were released a long time ago. See https://www.nuget.org/packages/Microsoft.CodeAnalysis/4.6.0-1.final

But testing support for them has not been updated.

Duplicate of #1047

@agocke The way to go for now is to use https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json and get latest prerelease.

In case you don't like to add the extra source for the whole codebase in NuGet.config, you could add <RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json</RestoreAdditionalProjectSources> to the test project.

Even with that change, there is still missing support, like the lack of an API for incremental generators.

@agocke Incremental generators are supported by defining the verifier class in your test project. It's a pretty small change from testing a previous ISourceGenerator. See the changes under the Verifiers folder here:
dotnet/roslyn-analyzers@8a090706

Where are the docs on this?

I removed the ISourceGenerator type constraint in #1084, so this has now become a duplicate.

Where are the docs on this?

I'm not sure we have any published aside from usage examples in other repositories.

Duplicate of #1047