在aws buildspecs.yml文件中,dotnet发布命令不能与asp dotnet项目一起工作。

问题描述 投票:0回答:1

我已经创建了一个示例点网应用程序,文件夹结构如下。

enter image description here

当我使用这个命令时 dotnet publish -c release -o ./build_output demorepo2.csproj 构建输出被创建在 build_output 文件夹正确。

现在我有另一个asp.net mvc web应用程序。enter image description here

现在我使用相同的命令 dotnet publish -c release -o ./build_output test1.csproj 但这不工作。得到以下错误。

enter image description here

知道为什么会出现这个错误吗?

asp.net .net asp.net-mvc amazon-web-services aws-codebuild
1个回答
1
投票

使用Visual Studio进行ASP.NET Web部署。命令行部署

试着运行这个命令。

msbuild demorepo2.csproj /p:DeployOnBuild=true /p:PublishProfile=MyPublishProfile
© www.soinside.com 2019 - 2024. All rights reserved.