【问题标题】:Creating blazor project but a problem occurred while building创建 Blazor 项目,但在构建时出现问题
【发布时间】:2020-06-29 03:10:19
【问题描述】:

我正在尝试使用 blazor 和 .NET 构建一个项目,但在运行此命令后

dotnet new blazorwasm -o blazor-web

我收到了

Creating this template will make changes to existing `files:


`Overwrite   ./App.razor


`Overwrite   ./blazor-web.csproj


Rerun the command and pass --force to accept and create.

所以在我构建它之后,我使用这个命令编译它

dotnet build

但我收到了这个错误

Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1003: Specify a project or solution file `The current working directory does not contain a project or solution file`

任何帮助将不胜感激。

【问题讨论】:

    标签: asp.net-mvc blazor


    【解决方案1】:
    MSBUILD : error MSB1003: Specify a project or solution file `The current working directory does not contain a project or solution file`
    

    您尝试从错误的文件夹构建项目:

    cd blazor-web
    dotnet build
    

    【讨论】:

    • @aman 当一个回答有效时,你应该接受它并投票
    • 我投了票,但由于我有一些声望号,它没有被接受
    猜你喜欢
    • 2021-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-20
    • 2016-12-30
    • 1970-01-01
    • 2021-10-07
    • 2021-07-22
    相关资源
    最近更新 更多