Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense dies when referencing PCL component from script (requires #r "System.Runtime") #381

Closed
dsyme opened this issue Apr 23, 2015 · 1 comment
Labels

Comments

@dsyme
Copy link
Contributor

dsyme commented Apr 23, 2015

I created a component FSharp.Core.Fluent which is a PCL Profile 259 component.

When you reference this from a script, the F# language service in Visual Studio suffers a silent no-intellisense condition unless the script already contains this:

#r "System.Runtime" 

This is because the component contains ExtensionAttribute attributes for extension methods, and the process of building the initial type checking environment hits the "unresolved assembly System.Runtime" problem when resolving the ExtensionAttribute type. This happens very early and Visual Studio doesn't report the problem to the user.

I believe the correct and simplest thing is to add System.Runtime to the set of DLLs referenced by default in scripts and in F# Interactive in Visual F# 4.0. Adding it

I will send a PR for this and look for a way to test this.

@dsyme
Copy link
Contributor Author

dsyme commented Apr 23, 2015

Here's a repro - open a.fsx from an unzip of https://github.com/dsyme/bucket/blob/master/repro.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants