gpt4 book ai didi

azure - 找不到要运行的项目。确保 D :\home\site\wwwroot 中存在项目

转载 作者:行者123 更新时间:2023-12-04 01:33:17 25 4
gpt4 key购买 nike

我一直在努力解决这个问题。我正在尝试让我的 ASP.NET Core 2.1 应用程序在 Azure 应用服务上运行。

这是我在 Kudu 中看到的奇怪行为。

我在 D:\home\site\wwwroot 的 Kudu 控制台中看到我的项目的 dll 文件。然后我输入 dotnet run myproject.dll 并收到以下错误:

Couldn't find a project to run. Ensure a project exists in D:\home\site\wwwroot

知道这里发生了什么吗?

最佳答案

来自docs

The dotnet run command is used in the context of projects, not built assemblies. If you're trying to run a framework-dependent application DLL instead, you must use dotnet without a command.

所以尝试像这样运行它

dotnet myproject.dll

关于azure - 找不到要运行的项目。确保 D :\home\site\wwwroot 中存在项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50048591/

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