gpt4 book ai didi

asp.net-core - Jetbrains 骑士 : [MSB4057] The target "build" does not exist in the project

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

当我在 Jetbrains Rider EAP 21 中创建解决方案时,我在解决方案资源管理器窗口中收到“(缺少包)”错误。

然后,我尝试构建项目并获得 [MSB4057] 错误。

enter image description here

尽管如此,我可以通过终端运行该项目:

dotnet restore
dotnet build

...并获得以下信息:
Hosting environment: Production
Content root path: *path*
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.

dotnet --info 命令结果:
.NET Command Line Tools (1.0.3)

Product Information:
Version: 1.0.3
Commit SHA-1 hash: 37224c9917

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.3

最佳答案

我通过在设置 > 构建、执行、部署 > 工具集和构建 > 使用 MSBuild 版本中更改 MSBuild 版本解决了类似的问题。
我选择了位于 Rider 安装目录中的 MSBuild。

关于asp.net-core - Jetbrains 骑士 : [MSB4057] The target "build" does not exist in the project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43689479/

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