-
Notifications
You must be signed in to change notification settings - Fork 509
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
Beta 9 reports "Missing Analyzer Reference" #1345
Comments
This issue is reported only inside the IDE. The AppVeyor build is still showing up clean with Beta 9. |
Removing the analyzer reference to Newtonsoft (Expand References\Analyzers, Right-click Newtonsoft.Json, Remove) appears to fix the warning. I did this, and eventually (certainly not right away) I started seeing this Info Message showing up in VS:
|
I have obtained the source, and tried to take a look at this problem.
newtonsoft definitely has a dependency on mscorlib version 2.0.5.0, and is required by the solution. I also had a problem with EmbeddedResource not being supported, but upon rebuilding, that problem has resolved, perhaps a missing package. |
I think this warning can be safely ignored. it was solved by white listing all the system dll's. hopefully the warnings can be suppressed. If not, it's possibly a bug in roslyn, mscorlib should have been white listed in addition to the system libraries. An alternative, is to rebuild newtonsoft without the silverlight targets and reference that, since it would appear that the reference to 2.0.5.0 is for silverlight, and is not actually required. |
using the net45 version of newtonsoft.json.dll instead of the portable version, for both 6.0.8 and 7.0.1 of newtonsoft.json.dll solves the problem. replace the library here: |
Cleaning the solution fixed this for me. |
I just want to confirm that using net45 version of Newtonsoft.Json.dll indeed resolves the issue with the missing references to 'mscorlib, Version=2.0.5.0'. Would be nice not to see all those warnings in v1.0.0.10. |
Blocked on dotnet/roslyn#5065. |
Ditto, can confirm that copying the net45 version of JSON.NET 7.0.1 into |
It's definitely worth considering deploying the net45 version of JSON until microsoft have completed roslyn/#5065 |
@jimmymain I think that could be a reasonable workaround. We could actually do it directly in the .nuspec file and not need to touch the projects at all. |
When 1.0.0-beta009 is installed in a project, Visual Studio reports a MissingAnalyzerReference diagnostic:
The text was updated successfully, but these errors were encountered: