Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Dependency could not be resolved" deploying ASP.NET 5 website to Azure

I have a ASP.NET 5 website with 3 subprojects. The subprojects have a reference to EF 6.1. Locally everything works fine, but when I try to deploy the website to azure using the assistant, I get the error message

Dependency EntityFramework >= 6.1.3 could not be resolved in XXX\wrap\PDWeb.Application\project.json 22

The generated project.json of the PDWeb.Application subproject is

{
  "version": "1.0.0-*",
  "frameworks": {
    "net452": {
      "wrappedProject": "../../Application/PDWeb.Application/PDWeb.Application.csproj",
      "bin": {
        "assembly": "../../Application/PDWeb.Application/obj/{configuration}/PDWeb.Application.dll",
        "pdb": "../../Application/PDWeb.Application/obj/{configuration}/PDWeb.Application.pdb"
      },
      "dependencies": {
        "PDWeb.Model": "1.0.0-*"
      }
    },
    "net45": {
      "wrappedProject": "../../src/Application/PDWeb.Application/PDWeb.Application.csproj",
      "bin": {
        "assembly": "../../src/Application/PDWeb.Application/obj/{configuration}/PDWeb.Application.dll",
        "pdb": "../../src/Application/PDWeb.Application/obj/{configuration}/PDWeb.Application.pdb"
      },
      "dependencies": {
        "PDWeb.Model": "1.0.0-*",
        "EntityFramework": "6.1.3",
        "PDWeb.Services": "1.0.0-*"
      }
    }
  }
}

The complete build output can be found here

like image 297
Tobias Schittkowski Avatar asked Jul 25 '15 14:07

Tobias Schittkowski


1 Answers

I solved the problem by converting my subprojects to *.xproj...

like image 132
Tobias Schittkowski Avatar answered Sep 20 '22 20:09

Tobias Schittkowski