Unable to upgrate R# SDK nuget package from VS 2015

11 views
Skip to first unread message

Dmitry Dolotovskikh

unread,
Sep 6, 2017, 9:15:36 AM9/6/17
to resharper-plugins
Hi

I've tried to upgrate R# SDK for my plugin in Visual Studio 2015 (SP3)


But unfortunatelly gave follow error messages:

Attempting to gather dependency information for package 'JetBrains.ReSharper.SDK.2017.2.0' with respect to project 'ReSharePoint', targeting '.NETFramework,Version=v4.5'
Attempting to resolve dependencies for package 'JetBrains.ReSharper.SDK.2017.2.0' with DependencyBehavior 'Lowest'
Unable to find a version of 'sharpcompress' that is compatible with 'JetBrains.Platform.Core.Ide 109.0.20170824.131327 constraint: sharpcompress (= 0.11.6)'.

What is the right way/order to upgrade from 2017.1 to 2017.2 ?

Thanks.

Matt Ellis

unread,
Sep 6, 2017, 10:05:41 AM9/6/17
to resharper-plugins
We've seen similar issues with trying to update previous SDKs. I haven't checked, but I'd say it's the same - NuGet fails to figure out the correct dependencies. In this case, the easiest thing (!) is to uninstall the 2017.1 nuget packages and reinstall the 2017.2 ones.

Alternatively, you could change your .csproj files to the new .net core SDK style .csproj files. They still target .net framework 4.5, but have a simpler, cleaner .csproj. This is what we're doing with the Unity plugin. It does require VS2017 or Rider, though.

Here's the Unity .csproj - note the single JetBrains.ReSharper.SDK reference. It's got a bunch of other stuff in there that you won't need (support for a custom language in R#). But overall, it's a lot cleaner.

Matt

Matt Ellis

unread,
Sep 6, 2017, 10:07:11 AM9/6/17
to resharper-plugins
Oh yeah, and the big selling point of using the new .csproj file format (apart from not having all transitive references listed, and all files automatically referenced by wildcard) is that updating packages is a simple case of editing the .csproj and changing "2017.1" to "2017.2"
Reply all
Reply to author
Forward
0 new messages