Skip to content
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

Pack library with analyzer #9106

Closed
JohanLarsson opened this issue Jan 28, 2020 · 2 comments
Closed

Pack library with analyzer #9106

JohanLarsson opened this issue Jan 28, 2020 · 2 comments
Labels
Area:Analyzers Functionality:Pack Resolution:Duplicate This issue appears to be a Duplicate of another issue

Comments

@JohanLarsson
Copy link

JohanLarsson commented Jan 28, 2020

If we have:

Lib.csproj
Lib.Analyzers.csproj

And we want to pack so that Lib.nupkg has a package dependency on Lib.Analyzers.nupkg

An example of the desired result is: Microsoft.CodeAnalysis.Common that has a dependency on Microsoft.CodeAnalysis.Analyzers

For anyone familiar with paket it is done like this using paket:

dependencies
  Lib.Analyzers

In paket.template

Is there support for this scenario and if so where is it documented?

@JohanLarsson
Copy link
Author

dotnet/sdk#3848

@nkolev92
Copy link
Member

nkolev92 commented Jun 4, 2020

@JohanLarsson

Are you asking for special analyzers support? That's captured i the following ask: #6793.

However, if I am interpreting the issue correctly you are asking about dependencies in general, and that's already available through the pack targets.

Refer to docs here: https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target

@nkolev92 nkolev92 closed this as completed Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Analyzers Functionality:Pack Resolution:Duplicate This issue appears to be a Duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants