1.6 KiB
1.6 KiB
dotnet-framework:3.5 Sample
The dotnet-framework:3.5 sample demonstrates basic "hello world" usage of .NET Framework 3.5. It shows you how you can build and deploy a project relying on .NET Framework 3.5 in Docker.
Script
Follow these steps to try out this sample. To complete this sample you must have Windows 10 (or Windows Server 2016), Docker for Windows, Visual Studio, and Git installed.
Note: You must use Windows Containers on Docker for Windows to run this image. Be sure to check that you are properly switched to Windows Containers. Do this by opening the system tray up arrow and right clicking on the Docker whale icon for a popup menu. In the popup menu make sure you select 'Switch to Windows Containers'.
Preparing your Environment
- Git clone this repository or otherwise copy this sample to your machine:
git clone https://github.com/dotnet/dotnet-framework-docker-samples/dotnetapp-3.5
- Build the project locally from Visual Studio.
- Navigate to this sample on your machine at the command prompt or terminal. Make sure terminal is open to the same folder that contains the Dockerfile.
Build and run Docker image
- Build the Docker image
docker build -t my-dotnet35-app .
- Run the application in the container:
docker run my-dotnet35-app