dotnet / dotnet/project-system

LanguageServiceHost is not correctly resolving reference paths

Open
#1,872 8 comments 0 reactions 1 assignee Claimed by @davkean View on GitHub
Feature-Language-Service Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

1. Compile this via command-line and then open in VS

``` C#
using System;
using Accessibility;

namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
```

``` XML


Exe
netcoreapp1.1
c:\users\davkean\documents\visual studio 2017\Projects\ConsoleApp262\ConsoleApp262\obj\Debug




```

Expected: For it to be successfully compiled in both
Actual: Command-line compiles sucessfully, IntelliSense filter shows:

```
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'Accessibility' could not be found (are you missing a using directive or an assembly reference?) ConsoleApp1 c:\users\davkean\documents\visual studio 2017\Projects\ConsoleApp262\ConsoleApp1\Program.cs 2 Active
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.