After moving some RC1 test projects from windows over to my MacBook, it was time to start from scratch in OS X to see what that experience was like. Installing all the right pieces. I’d been using Visual Studio Code already on windows for nodes programming, but doing that for an ASP.NET 5 project is a little harder since the debugging for that isn’t implemented yet. At the same time I’m still getting used to navigating my way around a Mac … keystrokes, bash commands etc.
But I did get a small sample worked out and even used PostgreSQL to do the job.
That (remember, RC1) little test is on github here: github.com/julielerman/ef7osxtest.
But RC2 is a different beast!
Addendum because so many have asked: I am using the nightly builds of RC2. It is not out yet!
DNX is transitioning to CoreCLI with new underlying APIs. And there was that name change. ASPNET 5 became ASP.NET Core and EF7 became EF Core. The package and namespaces have changed.
And in the meantime, EF7/EFCore is still going through changes with RC2. To me the most significant is the work the team has been doing to help with disconnected graphs. You can read the latest (and I think final) state of how EF will handle disconnected graphs here on github.
I tried a few paths to starting a new project to try out RC2. Here’s some twitter evidence:
This has been my work environment for the past 10 hours. I even ate breakfast and lunch here. pic.twitter.com/EL78TyNcgQ
— Julie Lerman (@julielerman) January 31, 2016
I had watched the video of David Fowler & Damien Edward’s talk about Core CLI from NDC London and David did the demos on a mac.
My talk with @davidfowl on the change from DNX to .NET Core CLI for #aspnetcore is now live https://t.co/Uc9x5qLVJR — Damian Edwards (@DamianEdwards) January 28, 2016
But it took a tweet from Tony Sneed to remind me that I could get David’s demos from github:
@julielerman Ton of churn for RC2: rename, new hosting bits, DotNetCli, etc @davidfowl’s sample is a good reference https://t.co/ekTWX8Eked — Tony Sneed (@tonysneed) January 31, 2016
Indeed, that was the best starting point. I cloned that repository onto my MacBook and made sure I could run all three projects.
Now I’m working on building out the HelloMVC project by adding in the model, dbcontext, controllers and other relevant bits from my RC1.
At the moment (as of Feb 1 2016), the dotnet ef migrations commands aren’t working but Brice Lambson is working hard on it and says that should be pushed up this week. (Watch this github issue.)
And it might be a while before the Postgres provider gets updated to work with the new namespaces and package dependencies but we do have the Microsoft.EntityFrameworkCore.Sqlite provider that will work on OS X although there seem to be a lot of problems at the moment with that on Linux. But I’ll be trying that out anyway.