dotnet发布命令不适用于aws buildspecs.yml文件中的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 aws-codebuild
1个回答
0
投票

来自ASP.NET Web Deployment using Visual Studio: Command Line Deployment

尝试运行此命令:

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