简体   繁体   English

尝试使用 AWS CodeBuild 构建 .Net Framework 应用程序

[英]Trying to build .Net Framework app using AWS CodeBuild

I am trying to follow along with the blog post about creating custom docker images for AWS Code Build.我正在尝试关注有关为 AWS Code Build 创建自定义 docker 映像的博客文章。

https://aws.amazon.com/blogs/devops/extending-aws-codebuild-with-custom-build-environments-for-the-net-framework/ https://aws.amazon.com/blogs/devops/extending-aws-codebuild-with-custom-build-environments-for-the-net-framework/

When I run my build, i get an error in the MSBuild execution当我运行我的构建时,我在 MSBuild 执行中遇到错误

[Container] 2020/03/12 14:37:59 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: msbuild. Reason: exit status 3221225785 

Has anyone else been able to successfully followed that post and gotten the build to work?有没有其他人能够成功关注该帖子并使构建工作? There are not any more details about the error, so I am struggling to figure out why it is failing.没有关于该错误的更多详细信息,所以我正在努力找出它失败的原因。

Thanks, Kim谢谢,金

Instead of:代替:

FROM microsoft/dotnet-framework:4.7.2-runtime

... in the blog post where it mentions file C:\\BuildTools\\Dockerfile , please change to: ...在提到文件C:\\BuildTools\\Dockerfile的博客文章中,请更改为:

FROM mcr.microsoft.com/windows/servercore

Seemed some breaking changes happened in that image:该图像中似乎发生了一些重大变化:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM