Hacker News new | comments | show | ask | jobs | submit login

From my "less than awesome" experience over the last couple of days with .net core on Linux, I doubt that there is anything I ought to know about it in 2017.

I realize that the situation on Linux is very new for Microsoft but the current state after this much time is quite sad.

I don't know that I agree, mid last year I was able to run a few .Net server applications in docker -onbuild images, and it worked with minimal changes. You also may have better outcomes using the Mono runtime, which is more encompassing.

You should try the new docker images.

In the transition to msbuild projects they mixed-up the runtime versions. The documentation on using docker is wrong and very confusing - the Microsoft web site and the instructions on docker hub are not the same! The SDK image is broken, it seems to assume a Windows docker host - it tries to compile with the .Net Framework on Linux!

Publish a 5 line "hello world" program to a docker core runtime and you'll get a 250MB image. Try running more than a couple of those in a microservice configuration ... I hope you have deep pockets.

I can't say that I'm enthusiastic about the move to msbuild. After too many years of that on Windows I was hoping they would have seen the error of their ways.

Sounds like the build system doesn't have an appropriate base image... or create one. If I had to do it in production, I'd probably have a base image with the appropriate runtime, and the dependencies, then a release image with only the application's updated dlls added. ymmv though, and probably a lot of work.

I do think there's definitely an opportunity to streamline this, and separate the commit for the libraries from nuget, and the output from the build process... If they can automate this, all the better... I was pretty happy basing from the *-onbuild and it just built the project nicely and ran... but if you're constrained on space, I can definitely see this becoming wasteful very quickly.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact