CI image for windows: .NET 4.7.1 with msbuild and C#7 (VS2017)
10K+
This container image allows you to build and test your C#/.NET solution inside a docker container, making it unnecessary to install devtools on the CI machine. It contains the tools a standard visual studio 2017 installation would deploy, enabling compilation of most solutions (including office).
Notes:
Credits to @alexellisio (see http://blog.alexellis.io/3-steps-to-msbuild-with-docker/) for the initial dockerfile
With MSBuild tools With Visual Studio Community
Dockerfile:
FROM chemsorly/msbuilder:latest
SHELL ["powershell"]
COPY . 'C:\\build\\'
WORKDIR 'C:\\build\\'
RUN ["nuget.exe", "restore"]
RUN & msbuild PROJECTNAME.sln
CI config (Gitlab-CI.yml)
- 'docker build -f YOURDOCKERFILE -t YOURTAG . '
- docker create --name YOURCONTAINERNAME YOURTAG
- docker cp YOURCONTAINERNAME:C:\\build\\ YOUROUTPUTDIRECTORY
Content type
Image
Digest
Size
26.9 GB
Last updated
over 7 years ago
docker pull chemsorly/msbuilder