I have a small test .NET core project which is essentially a rest interface.
The project was created as:
ASP.NET Core Web Application (.NET Framework)
I want to use an external class that comes from a module called Common
So, I right click on dependencies, Visual studio shows me all the projects in the solution and I select Common; essentially the standard step to add a dependency.
This modifies the file project.json and adds the following:
"frameworks": {
"net462": {
"dependencies": {
"Common": {
"target": "project"
}
}
}
},
but, when I compile, I get the following error:
project.json(25,23): error NU1001: The dependency Common could not be resolved.
The dependency was added through the menus, the same way I'd add a dependency to any other project. Is there something totally difference in .NET Core?