There should be an easy way, or even a rebuild image to compile and deploy .NET artefacts using VS tools. Installing VS itself should not be needed since it brings a load of stuff that is not really needed.
Furthermore it seems to be impossible to have VS installed without rebooting.
What we want to achieve is to have a Windows Container that can be spawned in our Jenkins/Swarm Environment (working so far) to build the artefacts.
Thanks for sharing. What we’re looking for (in addition) is how to build mobile and desktop applications using Docker … do you have any hints for this direction as well?
Sorry, no real tips.Using a Server 2016 VM as a sandbox to find out what you need installed further would be a good idea, rather than doing it all in a container. Once you have worked that all out, then try repeating it from powershell in the containter, then once that is working you can code your dockerfile.
This will give you a container that is running the VSTS build agent that seems to build ASP.NET 4 and Windows Desktop apps fine. I have not yet tried mobile.