-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Analyzer packaging support and packaging documentation #52554
Conversation
To package Microsoft.Extensions.Logging.Abstractions we needed support for packing an Analyzer. This adds that support. I wanted to document this addition, so I created the start of a doc that's meant to describe the packaging options for libraries in dotnet/runtime.
Tagging subscribers to this area: @maryamariyan Issue DetailsTo package Microsoft.Extensions.Logging.Abstractions we needed support I wanted to document this addition, so I created the start of a doc that's Hopefully folks can pitch in and improve this doc.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for writing such clear docs as well 🎉
With this changes we do have P2Ps in place which means we can remove the extra ProjectReferences in src.proj. Can you please remove these:
|
Actually I haven't moved System.Text.Json to csproj pack yet, so I think that's still needed. I'll see if I can make that work with only the CSProj change (not migrating to pkgproj yet). |
This is due to https://github.com/dotnet/arcade/blob/57707a9e0150de043f8fc4a849f1f4f47dd3219a/src/Microsoft.DotNet.PackageTesting/NupkgParser.cs#L60 returning null for assets outside lib/ref/runtimes. I think this will coincidentally be fixed by dotnet/arcade@5faea1b since that fixes the file filtering to include packageId.dll, right now it's using title.dll and title is empty so the analyzer dlls are being included. |
Failure is happening in Microsoft.Extensions.DependencyInjection.Specification.Tests
This is saying that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor Nit's but looks great otherwise, glad that we are moving away from pkgprojs 🙌
Much thanks to @Anipik for making this possible |
Staging failures are #52736. |
To package Microsoft.Extensions.Logging.Abstractions we needed support
for packing an Analyzer. This adds that support.
I wanted to document this addition, so I created the start of a doc that's
meant to describe the packaging options for libraries in dotnet/runtime.
Hopefully folks can pitch in and improve this doc.