using Test.This.PCL;
using System;
namespace Project1
{
public class Test()
{
private TestItem _testItem;
public Test(TestItem testItem)
{
_testItem = testItem;
}
}
}
Expected behavior
No errors reported by Visual Studio.
Actual behavior
Project1 compiles with no issues at all but Visual Studio is full of errors.
using Test.This.PCL;
will complain that the namespace does not exist and any reference to TestItem will complain that the type or namespace could not be found.
Changing the PCL to target .net standard means intellisense starts working again as expected.
Environment data
dotnet --info output:
.NET Command Line Tools (1.0.0-preview1-002702)
Moved from https://github.com/dotnet/cli/issues/3126 on behalf of @storment.
Steps to reproduce
Create a PCL (PortableClassLibrary1) targeting .NETPortable,Version=v4.5,Profile=Profile111
Create a test class in the PCL
Create a project (Project1) targeting netstandard1.5 or netcoreapp1.0 Edit frameworks in project.json to import the PCL.
Create a test class in Project1
Expected behavior
No errors reported by Visual Studio.
Actual behavior
Project1 compiles with no issues at all but Visual Studio is full of errors.
will complain that the namespace does not exist and any reference to TestItem will complain that the type or namespace could not be found. Changing the PCL to target .net standard means intellisense starts working again as expected.
Environment data
dotnet --info
output: .NET Command Line Tools (1.0.0-preview1-002702)Product Information: Version: 1.0.0-preview1-002702 Commit Sha: 6cde21225e
Runtime Environment: OS Name: Windows OS Version: 10.0.10586 OS Platform: Windows RID: win10-x64