In this second post in my six-part series on ASP.NET 5, we’ll take a look at how your ASP.NET 5 applications will be configured upon startup. The startup in this new version of ASP.NET 5 is very different, but hopefully is clearer and easier to debug. At least that’s my impression so far.
If you haven’t read the prior topics, it would probably be helpful to start with the earlier articles. You can see a list of the links to the articles below:
Over the past few weeks I’ve been playing with the new ASP.NET 5 (also known as ASP.NET vNext) bits using Visual Studio 2015. I’m trying to make sense of the new changes and how they will affect how I build websites. I’d like to share some of what I’ve learned about the new stack.
I’m going to do this by talking through an example website I wrote using the new bits. Do know that we’re still pretty early and Visual Studio 2015 (CTP6 as of this writing) and ASP.NET 5 Beta 3 are both in a state of flux. This is definitely about what’s coming, not what is here so far.
I’ve been working on a new web site wholly using the ASP.NET 5 (e.g. vNext, MVC6, etc.) for the past couple of weeks. This means using Visual Studio 2015 Preview and the new project types in ASP.NET 5.
The idea around the site is to be an example of an ASP.NET 5 site using MVC6, EF7, and Visual Studio 2015. It’s not perfect and ASP.NET 5 isn’t ready yet so I expect to continue to fix and remove hacks for quite a while, but it’s been fun to dig into a whole new stack while it’s still getting the kinks worked out. Here are some of my first impressions.
I might be. In many of the projects I help with we have to handle back-end and front-end coding for web projects. This means I need the best in breed in tools no matter where I’m writing code.
In many cases this is Visual Studio. I love this tool and have for years. While it’s not without it’s own foibles, it does most things really well. But not everything.
This week, I’m in Köln, Germany for two short events. This is one of my favorite cities and I spent time here back in the early ‘90s as a street musician. I didn’t need an excuse to visit this great city, but I had one anyway.
First was the Web Developers Kompact where I showed off AngularJS in an hour. The next day I did walkthrough of ASP.NET Web API at the .NET Developers Kompact. The attendees were great and even though there were fewer questions than I normally get, the quality of the questions was great.
Today is the day that Netflix has decided to shut down their public API. They stopped giving out API keys a long time ago, but except for a select few apps, all others are dead…including mine.
As I shut it down today I have no regrets. I actually am surprised by how long it has lasted because the road was rocky and I learned a lot.
Recently Pluralsight has been doing a series of Webinars on a variety of subjects. This week I’ll be doing one in their Dev series. Join me this Tuesday when I’ll be talking about the new features in WebStorm 9 and demonstrating it.
I had the pleasure of being invited to come to Zagreb, Croatia for the Advanced Technology Days! Though my Croatian is pretty dusty (by that I mean completely missing), I got to talk to a lot of great devs and have a wonderful lunch!
I love events like this as it gives me the chance to talk about technologies that benefit from showing live coding (versus just slide ware). I did two talks, one on AngularJS and another on Node.js for .NET Developers. Below you can find the slides and the demos:
If you are upgrading your projects to AngularJS 1.3 and you’re noticing a problem, there is a breaking change that might affect you. The error usually presents itself as “Controller error Argument is not a function”. If you’re seeing this, this post should help.
Unfortunately, my Pluralsight “Building a Site with Bootstrap, AngularJS, ASP.NET, EF and Azure” course repeats this problem (since it was built with a much earlier version of AngularJS. I am going to be rebuilding this course soon with updated versions of everything (Boostrap 4, AngularJS 1.3, ASP.NET vNext, EF7) but until then, you’ll want to see the fix.
The new course is all about using WebStorm 9 to build web applications. The course was built using the WebStorm 9 EAP so I was able to cover new features as well as the basics.
So AngularJS team finally is talking more publically about what they’re trying to do. At the ngEurope conference last week, they talked very opening about their new strategy for AngularJS 2.0 and it has a lot of people freaked out. Sounds a lot like some reaction to Silverlight in fact.
I’m seeing a flood of hate on the AngularJS team at the moment. I am not sure it is justified. Here’s why:
Last November when I decided to start the Hello World Podcast, I wasn’t sure how long I could sustain it. I’m having fun doing the show and getting to speak to the most amazing people in our field. I’m most surprised by the different stories.
I am delighted to be creating courses for Pluralsight. It’s fun and it’s something I can do while I am travelling on the http://wilderworldtour.com. I hope the students are getting a lot out of the courses and am happy to answer questions when they get stuck.
But it seems that many of the questions end up as messages directly here on my blog or even directly to my email address. The only problem with this is that if I answer questions directly, the other students can’t benefit from them.
Let me start this post by saying I might not know what I am doing. It happens more than you might imagine. I love Azure Websites and use it pretty extensively for my ASP.NET hosting..this blog is even using it. Love it.
I also host a couple of Ghost blog sites using Azure Websites. This works sometimes…but usually it’s a nasty rash of trial and error and I often give up. Here’s the story of getting me and my wife’s blog using Ghost and Azure Websites that left me pulling out my hair yesterday.
I’ve known of Kate Gregory forever. When C++ was the core of what I did in software development, her advice and books were crucial to my understanding of how the great language worked.
So no shocker when I had a chance to get her behind the mic for the Hello World Podcast, I couldn’t pass it up. We talk about her start from punch cards through to C++ 11 and the revolution that the new standards have had on the language. If you’re a current or past fan of C++, you need to listen to this one!
It took more than I expected to get Kathleen to join me on the podcast. But after begging, pleading, and some honest compliments she gave in. I think it was well worth the wait!
If you’re a fan of Kathleen like I am, I think you’ll enjoy her story of how her career unfolded. It all started with a cast-off NASA computer when she was growing up in Huntsville, AL. And I don’t’ think she’s ever stopped since.
I know that the title of this post may be a bit of link bait, sorry about that. But having been in this business quite a while now, I am noticing a trend. A trend that worries me.
The Single Page Application (or SPA) moniker is one I’ve always disliked (as you’d know if you follow me on Twitter). But it’s not the technology I have a problem with, it’s the moniker and the implications of the moniker.
It’s that time again. I’ve recently released a new course on Pluralsight. This time I tackle Web Development for complete beginners.
If you are a developer who wants to move from either back-end development or from desktop development to client-side web development, this course may be for you. The concept around the course is to get you up to speed with the very basics of web development in a short amount of time. In fact, in just over three hours, you should be able to get a basic understanding of web development.
As many of you know, me and my new wife are having the trip of our life. We’re in Switzerland at the moment and having a great time. We are certainly learning as we go what is important and what is not. I thought it might be a fun chance to talk about the gear I’ve used so far and discuss what worked and what didn’t.
As we travel, I am still working. I am recording Pluralsight courses, working with clients, doing the Hello World Podcast, as well as planning for some in-person training during the trip. This means I not only need gear to enjoy the trip but to work as well.
Even though I can’t be there this year, I’m excited to help out in holding this year’s Atlanta Code Camp. On October 11th, 2014, the Atlanta Code Camp will be held at the Southern Polytechnic State University in Marietta, Georgia.
Last year, we had a great time bringing you some of the best speakers in the southeast together to hold over forty different sessions across eight different tracks. It’s time to register for this year’s event.
For my last stop of my UK user group tour, I stopped in the town of Aberdeen. This is as far north as I’ve ever been. It’s at 57 degrees north latitude. That’s the same as Juneau Alaska! Luckily it’s summer time.
The group here in Aberdeen was a great group. I spoke about Web API 2 and I got some of the difficult questions about writing APIs. I want to thank Gary for helping get this handled.
It’s been a busy week. Today I got to spend the day in Glasgow and see the city a bit. In the evening I got to talk to a great group of developers about Angular.js. They were mostly open to the ideas about building interactive pages with Angular.js.
I haven’t done this talk in a while so I had a couple of hiccups. But with the crowd’s help we got through the demo. I fixed a couple of snags that didn’t work during the talk and you’ll find the full demo below:
I’m now on the Scotland swing of my Wilder World Tour. Had a chance to stop by Edinburgh. What a lovely city, at least as much as I’ve seen so far.
For this stop, we talked about Node.js. Fun to see a Microsoft office outside the U.S. The organizers were great in helping fill up the room. Great questions from the attendees too.
The first blog post I ever wrote was a short one on databases. In fact for those of you who haven’t been following me for more than ten years, my old domain was “ADOGuy.com”. I wrote about ADO and ADO.NET pretty exclusively for years.
These days I’m more known for web and XAML than data but it’s something that touches most developers so I continue to watch the trends. Of course the NoSQL v. Relational Database is the current fight in that space (taking over from the decade long ORM or no ORM skirmish). These fights seem awfully silly in the big picture because the answer is usually “it depends” or even “it’s both…” Let me see if I can convince you that the argument in itself is wrong.
The last stop of the week was in Nottingham. I had a chat with the Sheriff about some stolen hoodies. At least that’s what I thought he said – his accent was quite thick ; )
The team at dotNetNotts was great. We had a packed house of over sixty attendees. I am sure the pizza and beer helped, but some even stood for the talk. Resilient group!
|Using Visual Studio Code for ASP.NET Core Projects (new)|
|Implementing and Securing an API with ASP.NET Core (new)|
|Building a Web App with ASP.NET Core, MVC6, EF Core and AngularJS|
|Building a Web App with ASP.NET5, MVC6, EF7, and AngularJS (Retired)|
|Best Practices in ASP.NET: Entities, Validation, and View Models|
|Front-End Web Development Quick Start|
|Lessons from Real World .NET Code Reviews|
|Node.js for .NET Developers|
|Application Name||WilderBlog||Environment Name||Production|
|Application Ver||22.214.171.124||Runtime Framework||.NETCoreApp,Version=v1.1|
|App Path||D:\home\site\wwwroot||Runtime Version||.NET Core 4.6.25211.01|
|Operating System||Microsoft Windows 6.2.9200||Runtime Arch||X86|