This project is read-only.
1

Resolved

Update Libraries in "Diagnostic with Code Fix" Project

description

I have created "Diagnostic with Code Fix" project and updated all libraries through NuGet. Everything seems to be ok but after the update the diagnostic tool stopped working. It works ok when you create the project but update of libraries cause some unknown issue and it doesn't work any more. In debug mode no exception happens. I need to use new libraries, not old ones. I use VS 2013 Update 2.

Could you help me to fix the issue, please.

comments

vbfox wrote Aug 10, 2014 at 4:45 PM

Hi,

I don't know what is the official answer but if you just need it to work you can directly reference the versions used by visual studio. They are in C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies\

I had to do this change in my test repo to continue working on Update 2 too: https://github.com/vbfox/RoslynDiagnostics/commit/fafe9cd4a4279f32372bb774cba2cfa41fa45bb5

AlexTurnMSFT wrote Sep 5, 2014 at 6:28 PM

Each later version of the NuGet packages align with a particular Visual Studio "14" CTPs and diagnostics built against those packages will only work against that particular VS CTP, due to breaking API changes as Roslyn evolves.

If you're using the VS 2013 Preview, be sure to not update the Roslyn packages from the versions in the template. If you want to play with the latest APIs, you'll need to try out the latest VS "14" CTP (instructions on the CodePlex home page).