Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Added nuspec file to Mvc.Analyzers assembly #7690

Merged
merged 1 commit into from
Apr 20, 2018

Conversation

ajaybhargavb
Copy link
Contributor

<dependencies>
<group targetFramework=".NETStandard1.3">
<dependency id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="2.6.1" exclude="Build,Analyzers" />
<dependency id="NETStandard.Library" version="1.6.1" exclude="Build,Analyzers" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@natemcmaster confirming we don't need this reference. The project's going to get an implicit reference to a newer version anyway.

@ajaybhargavb ajaybhargavb force-pushed the ajbaaska/symbols-nupkg branch from 3deacfc to fb21c95 Compare April 20, 2018 00:10
<repository type="git" url="$repositoryUrl$" commit="$repositoryCommit" />
<dependencies>
<group targetFramework=".NETStandard1.3">
<dependency id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="$CodeAnalysisCSharpWorkspacesVersion$" exclude="Build,Analyzers" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically analyzer packages should have zero dependencies. Analyzer packages only deliver an analyzer binary, but shouldn't introduce dependencies to the app.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already the case.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You caught a bug. This dependency should have been PrivateAssets='All'. The references to roslyn are only used to produce the analyzer. They're not needed by the application's runtime in order to use the analyzer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay. I'll update it.

@ajaybhargavb
Copy link
Contributor Author

Updated.

@ajaybhargavb ajaybhargavb force-pushed the ajbaaska/symbols-nupkg branch from 9b0d62b to 8dc8590 Compare April 20, 2018 01:52
repositoryUrl=$(RepositoryUrl);
repositoryCommit=$(RepositoryCommit);
copyright=$(Copyright);
CodeAnalysisCSharpWorkspacesVersion=$(MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed?

@ajaybhargavb ajaybhargavb force-pushed the ajbaaska/symbols-nupkg branch 2 times, most recently from ef72609 to 43f6150 Compare April 20, 2018 21:28
@ajaybhargavb ajaybhargavb force-pushed the ajbaaska/symbols-nupkg branch from 43f6150 to 595e83d Compare April 20, 2018 21:54
@ajaybhargavb ajaybhargavb merged commit 595e83d into release/2.1 Apr 20, 2018
@ajaybhargavb ajaybhargavb deleted the ajbaaska/symbols-nupkg branch April 20, 2018 21:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants