- 
                Notifications
    You must be signed in to change notification settings 
- Fork 834
Description
When an existing F# .NET Framework solution using NuGet libraries is opened and compiled in VS 2017, and there are no bin, obj and packages folders, then there will be IntelliSense errors that won't go away until you restart VS.
Repro steps
Fast repro steps, using attached project in zip file
- 
Unzip the attached repro. (Remember to unblock the zip file first.) 
- 
Open the solution, and wait a few seconds. You should see errors in the Error List pane. If not, try to compile. 
The solution has no errors, and compiles successfully. The reported errors are from IntelliSense.
Solution files here:
BugHunt3b.zip
====
Alternative repro steps, doing everything from scratch.
- 
Create a solution and a new F# console project. 
- 
Include a NuGet project. I have tested with FsXaml and with Gjallarhorn, in two separate repros. This I believe indicates that it is not related to type providers, since as far as I know Gjallarhorn does not contain a type provider. 
- 
Insert "open FsXaml" or "open Gjallarhorn". 
 3b. Suggest you also use something from the library, so you can get more errors. See screenshot.
- 
Compile. This does not provoke illegitimate errors. 
- 
Close Visual Studio. 
- 
Delete the bin and obj and packages folders. 
- 
Reopen Visual Studio and solution. 
You should see errors after a few seconds. If not, try to compile.
Known workarounds
The sticky errors will go away if VS is restarted.
Related information
Visual Studio 2017, 15.3.2.
Visual F# Tools, Nightly 15.4.1.17082301.
Project created with .NET Framework 4.5.2 or 4.6.1.
Reproduced on two machines.
Severity: Not critical. Easy workaround.
