I have created a couple of diagnostic analyzer and code fixes. They all work in the experimental hive as expected.
I build them as a Nuget
package and add to a project in a normal instance of VS2015
. Oddly one of the analyzer/code-fix combo works correctly, but for the other one only the analyzer works and no code-fixes are suggested (as mentioned it does work in the experimental hive).
My question is, how can I analyze this problem? There's nothing in ActivityLog.xml. Has anyone else observed this behaviour?
UPDATE: I tested using the vsix VS extension in a normal instance and the code fix appeared correctly. I closed that file and re-opened and the code fix was no longer available. No matter how many times I close and re-open the file, the code fix does not come back. But then I open another file that contains a different diagnostic and code fix, and this somehow kick-starts the other code fix, because I can reliably get the code fix back by doing this!
This might sound ridiculous, but I think I've observed this with other 3rd party analyzers. Perhaps there's an issue with my VS install?