0

I have created a Web API dotnet core project and i would like to use an older C# library (.NET Framework 4.5)

My project.json looks like

...
  "frameworks": {
    "netcoreapp1.0": {
       "imports": [
         "net451",
         //"dotnet5.6",
         //"dnxcore50",
         "portable-net45+win8"
         ],
  "dependencies": {
    "LibInternal": {
      "target": "project"
    }
  }
}
...

After adding a using in Startup.cs, i get the error - the type or namespace name "..." could not be found.

What is wrong?

Juri
  • 1,531
  • 2
  • 20
  • 43
  • Did `dotnet restore` succeed for you? – svick May 28 '16 at 21:57
  • no, same error like before – Juri May 30 '16 at 08:25
  • Is your **LibInternal** C# Library folder present at the same level as your WebApi project's folder ? for e.g. parent folder should have two sub folders named YourWebApi and LibInternal. Only then `dotnet restore` of your webapi would restore LibInternal project successfully. – Swaminathan Vetri Jul 11 '16 at 16:05

0 Answers0