Given:
mono --version
) (installed via brew cask install mono-mdk
or installed via the official macOS package) msbuild -version
) I seem to be unable to get intellisense working on VS Code in a project that has to use F# from C#. I have a project in F# and one in C#. And the C# one has a reference to the F# one (to use some of the symbols contained in it).
What I did is this:
dotnet add reference
the F# project to the C# project dotnet restore
the solution that contains both dotnet build
dotnet run
And everything works fine on the command line.
On the other hand on VSCode I get "missing reference" errors for symbols defined in the F# project.
I tried every combination of the following sets:
brew install mono
)brew cask install mono-mdk
)and:
"omnisharp.useGlobalMono": "always"
in my settings.json
for VS Code"omnisharp.useGlobalMono": "auto" in my
settings.json` for VS Code Between each attempt I have:
bin
and obj
folders from every projectI've read the following references but none of the solutions worked:
Neither OmniSharp nor Ionide recognize or handle mixed C#/F# solutions. Doing so would be an enormous amount of work - the equivalent machinery in Visual Studio is built by a fully staffed team, something open source plugins cannot afford to do.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.