I did the following:
- Create a new console application in vscode using
dotnet new console
. - Add the Edge.js package using NuGet Add-Package command from vscode ctrl-shift-p
- When writing the program as follows:
using System;
using EdgeJs;
...
I am getting the error:
The type or namespace name 'EdgeJs' could not be found
What I am going wrong?
The problem is that the project was created using the default framework which is net50. According to the Edge.js package description, this is not supported. I changed it to net48 and it worked.