Brandon Minnick
Brandon Minnick

Reputation: 15340

Can I reference a Shared Project from a .NET Standard Library?

It looks like .NET Standard Libraries cannot add a Shared Project as a reference.

I created a .NET Standard 1.4 Library and am trying to reference an existing Shared Library from the the .NET Standard Library.

But, the code in the Shared Libary doesn't inherit any of the System libraries from my .NET Standard Libary.

For example, the below code produces this error message:

The type of namespace name 'System' could not be found...

using System;

namespace SharedProject1
{
    ...
}

I am currently running Visual Studio 15.3.0 Preview 2.1

enter image description here

Upvotes: 1

Views: 771

Answers (1)

Brandon Minnick
Brandon Minnick

Reputation: 15340

This was a bug in the preview of Visual Studio 15.3 and has been fixed as of 15.3 Preview 6.

This bug also exists in Visual Studio for Mac, and has been fixed as of version 7.1 Build 1294.

Upvotes: 1

Related Questions