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

Analyzers transformation not working as intended #16

Closed
mbp opened this issue Jun 9, 2017 · 1 comment
Closed

Analyzers transformation not working as intended #16

mbp opened this issue Jun 9, 2017 · 1 comment

Comments

@mbp
Copy link
Contributor

mbp commented Jun 9, 2017

<Analyzer>element might reference local "packages" directory:

<Analyzer Include="..\packages\AWSSDK.CloudWatch.3.3.2.2\analyzers\dotnet\cs\AWSSDK.CloudWatch.CodeAnalysis.dll" />

After conversion, this file is not found on disk (I'm not sure how this should be specified instead).

I found that when I install AWSSDK.CloudWatch using old project format, I get the <Analyzer> element.
But if I use the new csproj and install same package, the <Analyzer> element is not added.

@hvanbakel
Copy link
Owner

So I just found out what the difference is here, in VS2015, the analyzers were treated as a special reference. In 2017 though they just show up under the Nuget reference folder and are treated as a special reference there. So in that case, the analyzer reference is not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants