-
Notifications
You must be signed in to change notification settings - Fork 585
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
Add reference to netstandard to prevent issues "You must add a reference to assembly netstandard"? #1938
Comments
Just an FYI as i have the same problem right now, the workaround for me is
otherwise i get intellisense but FAKE complains about |
Yes that is the correct workaround I have used as well for the same reason. I guess now that we all have this in place we might as well add it to the I was a bis hesitant because older editors might choke at that line. |
Not sure if this is related, but i tried to use Newtonsoft.Json.Linq and i get:
Compiles just fine, but intellisense is broken. |
Interesting because I thought we emit framework assemblies into the intellisense file as well. But maybe we just miss them for some reason |
Intellisense_lazy.fsx does contain System.Core. A minimal example is working here at home, so it might not be a FAKE problem at all. My computer at work might have some super old .net version installed and |
Yes only |
Yes thats the only one missing. Do you know of a way to deal with |
I don't think you can get it running smoothly with .net3.5 :P |
Just for the record, referencing the
I had to provide the explicit path to a newer, 4.7.1 facade assembly to get it to work. Eg.
|
As I mentioned in ionide/ionide-vscode-fsharp#839 (comment), I think you'll find that this works for mono: #if !FAKE
#r "Facades/netstandard"
#endif |
I'm addressing this here for Visual Studio Code: ionide/FsAutoComplete#402 Therefore I'm closing this now. I thought about this several times and there is just no good way to address this in FAKE itself. |
Automatically restore and load references via `Fake.Runtime` when opening a script Add `FAKE` compiler define to shows the correct code-paths The `netstandard.dll not found` issue went away, because now uses the same command line parameters as the FAKE runtime does (ref dotnet/fsharp#5216 ionide/ionide-vscode-fsharp#839 and fsprojects/FAKE#1938 )
Description
Expected behavior
Intellisense works.
Actual behavior
See screenshot
Known workarounds
Potentially adding
#r "netstandard"
Most portable workaround:
The text was updated successfully, but these errors were encountered: