Windows server core container containing build tools for .net framework and dotnet core
135
.NET Core and .NET Framework Build Docker Image This repository contains an image used to compile, publish and test .NET Core and .NET Framework applications inside the container. It extends the concept of the microsoft/aspnetcore-build image to .NET Core applications running on the .NET Framework and Windows Classic Web/Desktop Applications. It can also be used to build .NET Core applications the same way the microsoft/aspnetcore-build image is used. This is a Windows Container image.
Tools include:
Build Tools for Visual Studio 2017 .NET Core SDK 2.0 .NET Framework 4.7 Developer Pack .NET Framework 4.6.2 Developer Pack .NET Framework 4.6.1 Targeting Pack .NET Framework 4.6 Targeting Pack .NET Framework 4.5.2 Developer Pack NuGet
Example CI Usage: Build and test a .NET Core application running on the .NET Framework (4.7), mounting the code and publishing the test results:
docker run -t -v "$(Get-Location):C:/app:rw" --rm --workdir C:/app capgemini/net-build powershell.exe "dotnet test -f net47 -c Release --logger trx%3bLogFileName=../TestResults.xml"
Build and publish a .NET Core application running on the .NET Framework (4.7), mounting the code and publishing the output:
docker run -t -v "$(Get-Location):C:/app:rw" --rm --workdir C:/app capgemini/net-build powershell.exe "dotnet publish -f net47 -c Release -o ./frameworkoutput"
Build and publish a .NET Framework application, mounting the code and publishing the output:
docker run -t -v "$(Get-Location):C:/app:rw" --rm --workdir C:/app capgemini/net-build powershell.exe "msbuild /p:Configuration=Release /p:PublishDir=./output/ /t:Publish"
Build and test a .NET Core (2.0) application, mounting the code and publishing the test results:
docker run -t -v "$(Get-Location):C:/app:rw" --rm --workdir C:/app capgemini/net-build powershell.exe "dotnet test -f netcoreapp2.0 -c Release --logger trx%3bLogFileName=../TestResults.xml"
Build and publish a .NET Core (2.0) application, mounting the code and publishing the output:
docker run -t -v "$(Get-Location):C:/app:rw" --rm --workdir C:/app capgemini/net-build powershell.exe "dotnet publish -f netcoreapp2.0 -c Release -o ./netcoreoutput"
Content type
Image
Digest
Size
6.6 GB
Last updated
about 8 years ago
docker pull aanusha/cap-net-build:v1.0