Good day. The essence of the problem: the VS Code editor cannot see the link to the library, for example, adding System.Collections
when trying to use ArrayList
, then the following error will follow: "ArrayList is an unknown object". When I try to write System.Collections.ArrayList
intellect sees nothing. Also, I found all the necessary libraries in OmniSharpe, but I don’t know how to connect them to VS Code - what, in fact, is the question.
|
1 answer
In .NET Core, the standard library is distributed across multiple nuget packages. Non-generic collections (including ArrayList
) are in the System.Collections.NonGeneric
package. To connect the package, you need to add a line to the project.json
file:
"frameworks": { "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0" }, "System.Collections.NonGeneric": "4.0.1" }, "imports": "dnxcore50" } }
- And what about "4.0.1"? - Pepsi4
- @ Pepsi4 is the version - kmv
|