-
-
Notifications
You must be signed in to change notification settings - Fork 277
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 breaks when targeting multiple frameworks #416
Comments
Cc: @enricosada |
@Krzysztof-Cieslak problem is, fsc args are specific to a target framework. meanwhile dunno, i can try read that property, and use the first added ionide/FsAutoComplete#162 to track that |
Oh yeah, I do realize that choosing target etc should be real fix for that. But I still don't know how to handle it well from UX point of view. I think that choosing first target framework from the list should be sensible default and decent workaround for now |
I'll do that, like linked issue. But how the others extensions do something similar? Config file? Where is s good place for transitory config? |
I'd say it's probably some config file, UX wise it could just be a command like |
support in FSAC will be implemented by ionide/FsAutoComplete#168 atm will be used the first, so if I dont have found yet a satifying hipotetical way to specifiy my preference in vscode (settings, env var in tasks.json, etc), but FSAC is ready to accept the choice, if we want to improve the UX.
|
Initial support for multi-targeting released in |
When working in a .NET core app with multiple target frameworks:
dotnet restore
->dotnet build
compiles successfully, but Ionide doesn't recognize any other files. It recognizes any types/modules/functions defined within the same file, but when opening a module in another file, I get "namespace or module Xyz is not defined".If I then replace my target framework in the fsproj as follows:
delete my obj folder,
dotnet restore
->dotnet build
then all the intellisense starts working again.Environment: Win10, Ionide 2.25.9, VS Code 1.11.2
related issues: #278
The text was updated successfully, but these errors were encountered: