Support for mixed .NET Framework 4.6.1 and .NET Standard 2.0 projects

Hi, is there any information which dependencies are needed for .NET Standard 2.0 support while building .NET Framework 4.6.1 projects?

Tried installing "Build Tools for Visual Studio 2017" (version 15.3) and nuget 4.3.0 and it does not seem to work: I get a lot of errors like this:

 

error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

 

5
4 comments
Avatar
Permanently deleted user

Zadintuvus, did you find a solution to this, we're having the same issue ?

0

Yes:

1. Download latest "Build Tools for Visual Studio 2017" (version 15.3 or newer) from https://www.visualstudio.com/downloads/

2. Make sure to install ".NET Core build tools" when installing Visual Studio Build Tools (we have this issue, because chocolatey package does not install it by default)

3. Things should work then.

1
Avatar
Permanently deleted user

Great, installing ".NET Core build tools" did the trick.

Thanks

0
Avatar
Permanently deleted user

Installing .net core build tools didnt resolve the issue for me. do i need to install .net core sdk 2.0 as well?

0

Please sign in to leave a comment.