dotnet-framework-docker README

The project's README from github.com/microsoft/dotnet-framework-docker. As one markdown file: README.md.

.NET Framework

About

The .NET Framework is a general purpose development platform maintained by Microsoft. It is the most popular way to build client and server applications for Windows and Windows Server. It is included with Windows, Windows Server and Windows Server Core. It includes server technologies such as ASP.NET Web Forms, ASP.NET MVC and Windows Communication Foundation (WCF) applications, which you can run in Docker containers.

.NET has several capabilities that make development easier, including automatic memory management, (runtime) generic types, reflection, asynchrony, concurrency, and native interop. Millions of developers take advantage of these capabilities to efficiently build high-quality web and client applications.

You can use C#, F# and VB to write .NET Framework apps. C# is simple, powerful, type-safe, and object-oriented while retaining the expressiveness and elegance of C-style languages. F# is a multi-paradigm programming language, enabling both functional and object-oriented patterns and practices. VB is a rapid development programming language with the deepest integration between the language and Visual Studio, providing the fastest path to a working app.

The .NET Framework was first released by Microsoft in 2001. The latest version is .NET Framework 4.8.

.NET Framework Documentation

Watch discussions for Docker-related .NET announcements.

Usage

The .NET Framework Docker samples show various ways to use .NET Framework and Docker together.

Container sample: Run a simple application

Type the following command to run a sample console application:

docker run --rm mcr.microsoft.com/dotnet/framework/samples:dotnetapp

Container sample: Run a web application

Type the following command to run a sample web application:

docker run -it --rm -p 8000:80 --name aspnet_sample mcr.microsoft.com/dotnet/framework/samples:aspnetapp

After the application starts, navigate to http://localhost:8000 in your web browser. You need to navigate to the application via IP address instead of localhost for earlier Windows versions, which is demonstrated in View the ASP.NET app in a running container on Windows.

Support

Lifecycle

Image Update Policy

Feedback

License

dotnet-framework-docker (microsoft/dotnet-framework-docker)

Searching Database…

这是什么?这是官方仓库,提供用于在 Windows Server Core 上构建 .NET Framework 容器镜像的 Dockerfile,涵盖 SDK、运行时、ASP.NET 和 WCF。
这是可运行的镜像,还是只是 Dockerfile 源码?它是按功能组织的 Dockerfile 集合(sdk、aspnet、runtime、wcf、samples),微软把它们构建成官方 .NET Framework Docker 镜像,你可以将其作为 Windows 容器拉取并运行。
我怎么试着运行一个示例容器?文档中有命令可用于在容器中运行简单的控制台应用示例和 Web 应用示例;启动 Web 示例后,你可以通过容器的 IP 地址在浏览器中访问它。
运行这些镜像需要什么?你需要 Windows 或 Windows Server,并把 Docker 设置为 Windows 容器模式,因为这些镜像运行在 Windows Server Core 上而不是 Linux 上。
我能通过 localhost 访问示例 Web 应用吗?不能 —— 在较早的 Windows 版本上,必须使用容器的 IP 地址而不是 localhost 来访问 Web 应用。
我可以用哪些语言为这些容器编写 .NET Framework 应用?支持 C#、F# 和 VB:C# 是类型安全的面向对象语言,F# 同时支持函数式和面向对象模式,VB 则与 Visual Studio 紧密集成。
基础镜像多久更新一次?只要基础的 Windows Server Core 镜像有任何更新,微软就会在 12 小时内更新受支持的 .NET Framework 镜像;而且每当 .NET Framework 发布主版本、次要版本或服务更新时,都会发布新镜像。
.NET Framework 有多少年历史了?最新版本是什么?.NET Framework 由微软于 2001 年首次发布,其中引用的最新版本是 .NET Framework 4.8。
Creator
microsoft
Size
4.4 MB
Stars
764
Updated
CommitOct 15
Age
10y
Commits · 90 Days