gpt4 book ai didi

asp.net - "Dependency could not be resolved"将 ASP.NET 5 网站部署到 Azure

转载 作者:行者123 更新时间:2023-12-02 15:43:33 25 4
gpt4 key购买 nike

我有一个包含 3 个子项目的 ASP.NET 5 网站。子项目引用了 EF 6.1。在本地,一切正常,但当我尝试使用助手将网站部署到 azure 时,收到错误消息

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

生成的PDWeb.Application子项目的project.json为

{
"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-*"
}
}
}
}

完整的构建输出可以找到 here

最佳答案

我通过将子项目转换为 *.xproj...

关于asp.net - "Dependency could not be resolved"将 ASP.NET 5 网站部署到 Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31627463/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com