-
-
Notifications
You must be signed in to change notification settings - Fork 294
Closed
Labels
buglanguage servicesProblems related to language services - FSAC or FCSProblems related to language services - FSAC or FCS
Description
Ionide doesn't see library reference on .NET Core 2.0 solution with two projects.
Repro steps
- Create solution with two projects: classlib and console
mkdir netcore2-vscode
cd .\netcore2-vscode\
dotnet new sln
dotnet new classlib -lang f# -o .\lib\
dotnet new console -lang f# -o .\app\
dotnet add .\app\app.fsproj reference .\lib\lib.fsproj
dotnet sln add .\app\app.fsproj
dotnet sln add .\lib\lib.fsproj
dotnet restore
- Put following code into
.\app\Program.fs
open System
open lib
[<EntryPoint>]
let main argv =
Say.hello "World"
0 // return an integer exit code
- Build and check that's everything is OK
dotnet build
dotnet run --project .\app\app.fsproj
- Open solution in VSCode
Expected behavior
Everything is fine. No errors in VSCode.
Actual behavior
Errors in VSCode:
- Problem reading assembly 'c:\Users\m1k3y\Documents\netcore2-vscode\lib\bin\Debug\netstandard2.0\lib.dll': Build was not evaluated, expected the results to be ready after 'Eval'.'
- The namespace or module 'lib' is not defined.
- The value, namespace, type or module 'Say' is not defined.
Sorry for translated version of VSCode.
Related information
- Operating system: Windows 8.1
- .NET Core 2.0
- Visual Studio Code 1.15.0, Ionide 2.32.2
Please find attached repro: netcore2-vscode.zip
Thanks!
leocavalcante
Metadata
Metadata
Assignees
Labels
buglanguage servicesProblems related to language services - FSAC or FCSProblems related to language services - FSAC or FCS