Search code examples
.net-core.net-standard

I cannot reference .Net Standard 2 library in .Net Core 2 project


I have created a .Net Standard 2.0 class library and created some simple Dtos. Then I tried to reference it in .Net Core 2.0 web application and I could no do it. Visual Studio noticed that I should make a reference, but when I did that - nothing happened.

I'm using Visual Studio 15.5.1.


Solution

  • It turned out, that adding using was not enough. I needed to update Resharper from version 2017.1.1 to 2017.3.1. It is actually version 2017.2.1 that added a support for .Net Core 2.0: jetbrains.com/resharper/whatsnew/#v2017-2.