简体   繁体   English

在Azure DevOps中为.NET Framework 4.7.x构建Docker容器

[英]Building Docker container for .NET Framework 4.7.x in Azure DevOps

I currently have a standard .NET Framework web application. 我目前有一个标准的.NET Framework Web应用程序。 With Docker support. 具有Docker支持。 I would like to build these Docker images using Azure DevOps but there don't seem to be any clear tutorials on how to do that. 我想使用Azure DevOps构建这些Docker映像,但是似乎没有任何明确的教程。

I can build the Docker image using the build button in Visual Studio. 我可以使用Visual Studio中的构建按钮来构建Docker映像。 This makes a usable image that works. 这样可以使可用的图像起作用。 Though I know how to either select such a build option in Azure DevOps or generally outside Visual Studio. 虽然我知道如何在Azure DevOps中或通常在Visual Studio外部选择这样的生成选项。

What I'm using: .NET Framework 4.7.2 boilerplate web app with Docker support. 我正在使用的:具有Docker支持的.NET Framework 4.7.2样板Web应用程序。

You could go with a general Build, test, and push Docker container apps set of tasks. 您可以执行一般的Build, test, and push Docker container apps任务集。

When you create a build you can choose a template for the build, you'd need to use the docker build template. 创建构建时,您可以为构建选择一个模板,您需要使用docker构建模板。 Otherwise just follow the linked tutorial. 否则,请按照链接的教程进行操作。

Reading: https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/docker?view=azure-devops 阅读: https : //docs.microsoft.com/zh-cn/azure/devops/pipelines/languages/docker?view=azure-devops

暂无
暂无

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

相关问题 .NET 4.7.x不会显示主窗口/ WPF升级到.NET到4.7.x可能导致无限循环 - Main window does not display with .NET 4.7.x / WPF upgrade to .NET to 4.7.x can result in infinite loops 如何使用“.Net FrameWork 4.7”项目在 Azure DevOps Pipeline 上创建 Coverlet 覆盖率报告? - How do I create a coverlet coverage report on Azure DevOps Pipeline with a ".Net FrameWork 4.7" project? 为什么在运行ASP.NET Framework 4.7应用程序时docker容器的时间戳错误? - Why is my docker container's timestamp wrong when running an ASP.NET Framework 4.7 application? 在同一解决方案文件中同时包含 .NET Framework 和 .NET Core 项目的 Azure DevOps 中构建 .sln - Building .sln in Azure DevOps that has both .NET Framework and .NET Core projects in the same solution file 构建 .NET 5.0 项目 Azure DevOps 流水线 - Building .NET 5.0 project Azure DevOps pipeline .Net Core 3.x 与 .Net Framework 4.7 的兼容性 - .Net Core 3.x compatibility with .Net Framework 4.7 无法卸载.NET Framework 4.7 - Can not uninstall .NET framework 4.7 如何添加针对完整.Net Framework 4.7的Asp.Net Core 2.0的Docker支持 - How to add Docker Support for Asp.Net Core 2.0 targeting full .Net Framework 4.7 在Azure Devops中的Linux映像中构建.NET Core项目时缺少MissingMethodException - MissingMethodException while building .NET Core Project in a linux image in Azure Devops Docker 容器找不到 .NET 框架 - Docker container unable to find .NET framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM