Ok this blog post is rather a duplicate of the docs. However many people wrote me an e-mail because they simply didn't find it.
1. Change the dependencies
2. Add the runtimes
List of RIDs: https://docs.microsoft.com/en-us/dotnet/articles/core/rid-catalog
3. Hit publish and voila.