7

Basically, when trying to add NuGet package which is not supporting older frameworks getting the error.

However in project configuration only 4.5 is available.

During the project creation no option to select the target is present.

Is there any way to configure it properly?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Ivan Temchenko
  • 814
  • 1
  • 9
  • 12
  • 2
    If you have visual studio installed try change target framework there. There is a tag `v4.5` in csproj file. Try edit it to 4.7 and see if it works. – Andrii Litvinov Aug 08 '17 at 18:58
  • Well, that did the trick, but now IDE is showing the pop-up that 4.7 Dev Pack is missing. Apparently one from VS is not shareable... And that is not and obvious solution. :( – Ivan Temchenko Aug 08 '17 at 19:48
  • 1
    Try to install it https://www.microsoft.com/en-us/download/details.aspx?id=55168. Maybe that's why it was not available in Rider. – Andrii Litvinov Aug 08 '17 at 20:20
  • Yeah, thats what did the trick. But then I had to switch to it from xml config, not from Rider itself =( – Ivan Temchenko Aug 09 '17 at 12:14

1 Answers1

8

I haven't found out how to set up .NET framework globally but here is a convenient way: enter image description here

Ádám Knapecz
  • 109
  • 2
  • 5