News for hackers. Stuff that matters.
Re:Announcing .NET Core and ASP.NET 5 RC by runfaster2000 on Wednesday November 18, 2015 @12:03PM (#10588983)
There are two major scenarios that we are targeting on top of Core:

- ASP.NET 5 web apps and services - see: https://github.com/aspnet/home - Native executables - see: https://github.com/dotnet/corert/blob/master/Documentation/i...

What do you think?

Disclosure: .NET Core team member

Re:Announcing .NET Core and ASP.NET 5 RC by alexc05 on Wednesday November 18, 2015 @04:53PM (#10591035)
I LOVE it.

I've been building in MVC3/4 for the last few years so have quite a bit of experience with how MS has been evolving in this space. From "BundleTransformers" through "Web Essentials" and now suddely all the way to GULP

I started building a weekend and evenings project in EF7+MVC6 at Beta6 and have suffered through breaking changes in beta7 & 8 but each stage of the way I've enjoyed myself.

Some of the things that I have recently struggled with is getting the project working on linux VMs and docker.

While I can get boilerplate projects working, this "bigger" project struggles to compile on docker.

Part of it may be my own fault since I've split the solution into multiple projects ("WEB", "API", "MODEL") where MVC6 seems to have a paradigm of keeping everything in the same project, but it does seem to work OK on a windows 10 host (I keep wanting to test it on azure but that's another story)

There isn't any clear path as of yet from "building something that runs locally in VS" to getting it hosted in a "massively scalable cloud of containers"

I'm exploring docker and kubernetes at the moment - but progress is slow :)

Additionally - in terms of development - I'd like to see some more scaffolding, like I see with (for example) strongloop/loopback in node.js I'm finding that my API breaks down in .NET when I try and use an EF entity around since we get into circular JSON references.

Anyways, I'm starting to get off on a tangent. I really do like what I see in .NET5 though feel there are some pains in places. Specifically around containerizing & rapid application development.

Re:Announcing .NET Core and ASP.NET 5 RC by ossreality on Wednesday November 18, 2015 @04:59PM (#10591078)
I'm aiming to have a demo of ASPNET5 on Kubernetes within two weeks. :) I'm having to figure out a lot along the way. I wish the aspnet team would take direct ownership of their docker image. There's no reason that the aspnet team can't be putting out new docker images every night with the latest DNX and MVC bits pre-loaded ready to go.
Re:Announcing .NET Core and ASP.NET 5 RC by runfaster2000 on Wednesday November 18, 2015 @11:27PM (#10592740)
There are these docker images. Do they work for your needs?

https://hub.docker.com/r/microsoft/aspnet/

Re:Announcing .NET Core and ASP.NET 5 RC by ossreality on Thursday November 19, 2015 @03:58PM (#10597608)
Kinda. I think it'd be better if the aspnet team's CI system would upload new dnx packages to myget... and then also build a new docker image with the latest dnx bits baked in.

That way I can try the latest and greatest of rc2 without having to rebuild my container every time new packages go up on myget.

It's a pretty minor ask... I'm probably one of a very small number of people that are stubborn enough to be on the bleeding edge (using rc2 when rc1 is the latest release, etc)

Re:Announcing .NET Core and ASP.NET 5 RC by blinkingled on Wednesday November 18, 2015 @12:10PM (#10589048)
Thanks! That's actually awesome and covers both use cases I care about personally. I am going to download it later today and try out - been preparing myself by reading C# code over past few weeks, so this is perfect timing.

I am interested in finding out how it compares right now to Java for building web apps and services - in terms of DB access, various ORM stuff etc.

Re:Announcing .NET Core and ASP.NET 5 RC by mercurial on Wednesday November 18, 2015 @02:02PM (#10589920)
How about F#? Is it viable through .NET Core on non-Windows platforms?
Re:Announcing .NET Core and ASP.NET 5 RC by runfaster2000 on Wednesday November 18, 2015 @02:10PM (#10589967)
The F# team is working on getting F# working on .NET Core. It's an important goal for the team.

You can follow their progress: https://github.com/Microsoft/visualfsharp/pulls?utf8=&q=is%3...

Re:Announcing .NET Core and ASP.NET 5 RC by mercurial on Wednesday November 18, 2015 @02:19PM (#10590025)
Looking forward to it. Thanks for the fast reply.
Re:Announcing .NET Core and ASP.NET 5 RC by mdgrech23 on Wednesday November 18, 2015 @12:38PM (#10589277)
I think it's awesome. I've been a Mac/Linux convert for over a decade now but I really really like C# and ASP.NET. The Visual Studio Code editor is awesome, the command utilities work great so far.
Re:Announcing .NET Core and ASP.NET 5 RC by crag on Wednesday November 18, 2015 @02:46PM (#10590213)
Wait. Wait. Are you saying it is now possible to write c#/ASP on mac?
Re:Announcing .NET Core and ASP.NET 5 RC by shanselman on Wednesday November 18, 2015 @09:55PM (#10592455)
Re:Announcing .NET Core and ASP.NET 5 RC by chrshawkes on Thursday November 19, 2015 @09:26AM (#10594902)
Where is an example of this. I write Node and Django on Linode since they provide great service, have a lot of flexibility and don't have extravagant and hard to predict prices for a VPS. It seems I have no options of running a C# website or project from my Ubuntu 14.04 without installing Mono. Is this accurate or are you saying somehow I can run an ASP.NET website from my Linode?

And assuming I can, is anybody else doing this? In the past it seems like production Mono makes no sense when Python and Node just work without additional libraries to make it work.

Re:Announcing .NET Core and ASP.NET 5 RC by sigzero on Wednesday November 18, 2015 @03:38PM (#10590575)
You have been able to write C# for a while now.
Re:Announcing .NET Core and ASP.NET 5 RC by chrshawkes on Thursday November 19, 2015 @09:27AM (#10594909)
Where is an example of this on Ubuntu? possibly a .NET site running on Ubuntu?
Re:Announcing .NET Core and ASP.NET 5 RC by Raed667 on Wednesday November 18, 2015 @01:01PM (#10589481)
I like C# and .NET because of VS and the dev tools that make my life easier. Is there an intent to have VS running on Linux ?

Edit : Not talking about Visual Studio Code, but the -original- Visual Studio IDE.

Re:Announcing .NET Core and ASP.NET 5 RC by murphm8 on Wednesday November 18, 2015 @01:03PM (#10589505)
VS Code is VS for Linux [1]

[1] https://code.visualstudio.com/

Re:Announcing .NET Core and ASP.NET 5 RC by Raed667 on Wednesday November 18, 2015 @01:09PM (#10589547)
I haven't used VS Code in a long time (since the very early versions when it cam) and I remember that it didn't meet my needs. What I like about VS is its project templates, dynamic auto-complete, integrated terminal, amazing visual git (and diff) integration... Are these available in VS Code ?
Re:Announcing .NET Core and ASP.NET 5 RC by cbo100 on Wednesday November 18, 2015 @04:42PM (#10590964)
Mostly "Yes, to a certain extent".

Maybe not project templates, they seem to be targeting Yeoman as the use case for "getting started".

But autocomplete and git integration are definitely there. In some ways better than how VS does it.

Re:Announcing .NET Core and ASP.NET 5 RC by urza on Saturday November 21, 2015 @04:25PM (#10608096)
What extension you use to git and diff functionality please?
Re:Announcing .NET Core and ASP.NET 5 RC by D_Guidi on Wednesday November 18, 2015 @01:50PM (#10589858)
Nope, actually. It's a "simple" text editor for coders, like atom and stuff
Re:Announcing .NET Core and ASP.NET 5 RC by manojlds on Wednesday November 18, 2015 @01:06PM (#10589521)
VS is too dependent on Windows to make the switch easy I believe.
Re:Announcing .NET Core and ASP.NET 5 RC by alexc05 on Wednesday November 18, 2015 @04:56PM (#10591052)
VS code seems to be catching up very rapidly though. Especially with the extensibility announced today https://code.visualstudio.com/updates

It may still be a while before is "surpasses" true VS - but - with support for sublime and textmate snippets it may be about to catch up to those two.

Re:Announcing .NET Core and ASP.NET 5 RC by politician on Wednesday November 18, 2015 @01:29PM (#10589701)
We're interested in running .NET web servers (currently NancyFX-based) in Docker containers on CoreOS. I think that may be covered by the ASP.NET 5 scenario.

Has the ASP.NET request processing pipeline changed significantly in v5? Last time I checked, our fork of Nancy only really cares about _Init, _BeginRequest, and the unhandled exception handler.

Re:Announcing .NET Core and ASP.NET 5 RC by daigoba66 on Wednesday November 18, 2015 @03:25PM (#10590482)
You may have to rewrite part of your fork.

ASP.NET 5 is essentially based on OWIN as a pipeline which uses a pipeline of async Func calls (that can be wrapped up into "middleware" components). NancyFX, actually implements an OWIN middleware which I think would be easy to tie into ASP.NET 5, but I haven't tried yet.

Re:Announcing .NET Core and ASP.NET 5 RC by douche on Wednesday November 18, 2015 @04:56PM (#10591056)
We've been using Nancy with the OWIN self-hosted HTTPListener for a couple years. Couldn't be a whole lot easier. IIS can die in a fire.
Re:Announcing .NET Core and ASP.NET 5 RC by daigoba66 on Wednesday November 18, 2015 @06:47PM (#10591613)
What's wrong with IIS?
Re:Announcing .NET Core and ASP.NET 5 RC by douche on Wednesday November 18, 2015 @08:41PM (#10592189)
It's a bad fit for most of the things I need to do. Especially for systems that have a lot of background processing, but need a web front-end (because enterprise, and dashboards!), it is a drag to have everything go down because IIS has decided to recycle your app pool due to 20 minutes of front-end inactivity. Yes, you can change the settings to disable that, or architect things differently to separate the UI from the background service, but it is extra complexity that is a pain. Building a Windows service that has a light-weight webserver built into it is much easier.

IIS also has too many knobs that can get fiddled and frig things up. Before we switched, I'd always be on support calls to help a customer fix one of our products after their sysadmin tweaked something in a way to break us, or installed some other piece of software that stomped on us.

IIS also has a very conservative set of defaults if you naively install it. Seriously, I've seen a lot of instances where customers install IIS, and CSS doesn't get served - you have to install an additional Static Content module. People don't read instructions, or bother to run required setup scripts. So you have to do a bunch of additional work with less-than-friendly installer authoring programs to make sure that features that any self-respecting web server ought to have out of the box are available.

Re:Announcing .NET Core and ASP.NET 5 RC by daigoba66 on Wednesday November 18, 2015 @09:19PM (#10592337)
Completely agree that it's wrong for certain use cases. And it is a complex tool, but I personally like the flexibility.
Re:Announcing .NET Core and ASP.NET 5 RC by jongalloway2 on Wednesday November 18, 2015 @01:39PM (#10589773)
The pipeline is pretty different in ASP.NET 5 - it's shifted to a pluggable middleware system rather than a canned set of events. More info here: https://docs.asp.net/en/latest/fundamentals/middleware.html
Re:Announcing .NET Core and ASP.NET 5 RC by polskibus on Wednesday November 18, 2015 @01:49PM (#10589848)
Any chance of migrating and/or open sourcing WCF to Linux next? What's in the pipeline?
Re:Announcing .NET Core and ASP.NET 5 RC by runfaster2000 on Wednesday November 18, 2015 @01:51PM (#10589861)
WCF client is already open. That's a great place to engage.

https://github.com/dotnet/wcf

Re:Announcing .NET Core and ASP.NET 5 RC by TranquilMarmot on Wednesday November 18, 2015 @03:52PM (#10590659)
Hey, been using ASP.NET 5 on Linux since beta 5 and really love it so far! Keep up the great work. I hope to contribute a bit in the future when I have some more free time.
Re:Announcing .NET Core and ASP.NET 5 RC by urza on Saturday November 21, 2015 @08:18AM (#10606722)
Wow.. does it mean I can write console app in c# and compile it to native executable for osx or linux?
Re:Announcing .NET Core and ASP.NET 5 RC by manojlds on Wednesday November 18, 2015 @01:05PM (#10589515)
Any updates on Powershell for other OS's?
Re:Announcing .NET Core and ASP.NET 5 RC by xanadohnt on Wednesday November 18, 2015 @02:23PM (#10590058)
I've completely switched to ScriptCs[0] for my scripting needs. Works on all platforms that Core supports.

[0]: http://scriptcs.net

Re:Announcing .NET Core and ASP.NET 5 RC by mkesper on Wednesday November 18, 2015 @02:09PM (#10589963)
God forbid! PowersHell can really drive you to insanity with half-swallowed chained exceptions (pointing to the initial caller) and its return-everything-from-procedures behaviour.
Re:Announcing .NET Core and ASP.NET 5 RC by seivan on Wednesday November 18, 2015 @02:29PM (#10590105)
Could we get started with .NET MVC on Mac OS?
Re:Announcing .NET Core and ASP.NET 5 RC by runfaster2000 on Wednesday November 18, 2015 @11:29PM (#10592744)
Re:Announcing .NET Core and ASP.NET 5 RC by jongalloway2 on Wednesday November 18, 2015 @11:35PM (#10592764)