roslyn - Analyzer working but potential code fixes disappear -


i have created couple of diagnostic analyzer , code fixes. work in experimental hive expected.

i build them nuget package , add project in normal instance of vs2015. oddly 1 of analyzer/code-fix combo works correctly, other 1 analyzer works , no code-fixes suggested (as mentioned work in experimental hive).

my question is, how can analyze problem? there's nothing in activitylog.xml. has else observed behaviour?

update: tested using vsix vs extension in normal instance , code fix appeared correctly. closed file , re-opened , code fix no longer available. no matter how many times close , re-open file, code fix not come back. open file contains different diagnostic , code fix, , somehow kick-starts other code fix, because can reliably code fix doing this!

this might sound ridiculous, think i've observed other 3rd party analyzers. perhaps there's issue vs install?

i faced similar awkward problem when developed nuget package roslyn analyzers , code fix providers. when updated code , installed package projects, old package running instead of new one. when closed , reopened visual studio, new nuget package running.

i not sure guess there cache mechanism nuget packages in visual studio. didn't try below method may resolve problem.

how clear nuget package cache using command line?


Comments