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…

What is this?This is the official repo providing Dockerfiles for building .NET Framework container images on Windows Server Core, covering the SDK, runtime, ASP.NET, and WCF.
Is this a runnable image or just Dockerfile sources?It's a collection of Dockerfiles organized by feature (sdk, aspnet, runtime, wcf, samples) that Microsoft builds into the official .NET Framework Docker images, which you pull and run as Windows containers.
How do I try running a sample container?There are documented commands to run a simple console app sample and a web app sample in a container; after starting the web sample you access it in your browser via the container's IP address.
What do I need to run these images?You need Windows or Windows Server with Docker set up for Windows containers, since these images run on Windows Server Core rather than Linux.
Can I access the sample web app via localhost?No — on earlier Windows versions you must use the container's IP address instead of localhost to reach the web app.
What languages can I use to write .NET Framework apps for these containers?C#, F#, and VB are all supported, with C# being a type-safe, object-oriented language, F# supporting functional and object-oriented patterns, and VB offering tight Visual Studio integration.
How often are the base images updated?Microsoft updates the supported .NET Framework images within 12 hours of any update to their base Windows Server Core images, and new images are published whenever .NET Framework releases major, minor, or servicing updates.
How old is .NET Framework and what's the latest version?.NET Framework was first released by Microsoft in 2001, and the latest version referenced is .NET Framework 4.8.
Creator
microsoft
Size
4.4 MB
Stars
764
Updated
CommitOct 15
Age
10y
Commits · 90 Days