ASP.NET 5 (formerly known as ASP.NET vNext), along with .NET Core, is Microsoft’s ground-up rewrite of the .NET Framework. It is designed specifically for modern cross-platform web-application development and involves a number of breaking changes and new concepts that the .NET developer will need to be aware of.
The first major change that most developers will notice straight away is that there is are more *.config files. ASP.NET 5 does away with xml based configuration files, replacing them with a JSON based approach. For example web.config has been replaced by config.json. Another key change, is that we now have access to environment variables as part of our configuration. This in itself is a major departure from the traditional ASP.NET model, and one which does require some careful consideration.
The next major change is the increase in the number of package managers that you now need to be aware of. Gone are the days where all of your ASP.NET application dependencies are managed by NuGet. ASP.NET 5 has a more defined separation of your backend dependencies and your frontend dependencies.
NuGet: For .NET Framework and .NET packages (Backend)
Node Package Manager (NPM): For frontend build dependencies (Frontend)
Bower: For client side frameworks & libraries (Frontend)
Front end build automation / task runners
ASP.NET 5 makes some significant changes to the classic project structure that we are all familiar with. The largest change is the introduction of the wwwroot folder, which is where all of your static assets are stored and served from, files outside of the wwwroot folder are inaccessible. This change provides a higher degree of separation between files that need to be served to a requesting client and your server side code. The wwwroot folder is mapped directly as the root folder of your deployed application.
Would you like to learn more about ASP.NET 5?
SSW Dev Superheroes Adam Stephensen and Duncan Hunter will be covering this and more in their two day ASP.NET 5 and Angular Superpowers Tour. Stopping in Melbourne (16th – 17th March) Brisbane (21st – 22nd March) and Sydney (31st March – 1st April).
Adam Stephensen: Hi. I’m Adam Stephensen. I’m a solution architect at SSW and the principle mentor at FireBootCamp.
I’ve just finished my first application using Visual Studio 2015, MVC-6, and AngularJS. I’m so excited to building enterprise web apps leveraging all the front end best practices developed by the java-script community, and using my C-sharp, MVC, and Web API skills for the back end, and doing it all with the productivity of Visual Studio.
I’ve got to say, though, there’s definitely a lot of pain involved. Moving to MVC-6 and Visual Studio 2015 is a massive change. It’s as big a change as changing from Web Forms to MVC. There’s a lot of new concepts to get your head around, technologies to learn, and best practices to discover.
There are major changes to the solution structure which we will have a look at in a future video. We used to have XML config files. These are gone now. In their place we’ve got JSON based config files. For example, web.config has been replaced by config.json. We only use NuGet now for getting .net framework base packages. We use Bower for funding packages, and NPM for no packages.
Now instead of getting [inaudible 00:01:08] library’s like twitter boot stamp or NuGet, we use Bower as a client style package manager. To add clients on packages we simply add them to bower.json. The other package managing you need to get your head around is NPM, no package manager. We use packages.json to configure which no packages were going to use for tasks like bundling, minification, compiling type script and less, and other frontend build processes.
Okay, yeah. It’s all a bit much. It took us weeks of working with the new stack to work out how everything fit in together, and our best practice is still evolving. But we want to help you out by sharing what we’ve learned so far. So stay tuned, and we’ll be putting together lots of great content to help you get up to speed as easily as possible, and get shipping awesome apps on the lines of technologies.
Thanks for listening, and please drop me a tweet with your feedback.
About the speakers
Adam Stephensen is a Solution Architect at SSW with a decade of experience performing needs analysis, designing and building scalable, database-driven, distributed enterprise solutions incorporating web and windows interfaces.
Ulysses Maclaren and Adam Cogan discuss the best ways to keep organized using Outlook Calendar. Check out the rule here: https://rules.ssw.com.au/rules-to-bet… || Subscribe for more content from SSW TV || || Press like and leave a comment below to let us know how we’re doing || Twitter ↴ https://twitter.com/ssw_tv Facebook ↴ https://www.facebook.com/SSW.page …
In this video you will get insight into the people behind SSW. Hear from SSW’s General Manager, Ulysses Maclaren, and SSW’s Chief Architect + Microsoft Regional Director, Adam Cogan, on why SSW is Australia’s leading custom software development company. Consulting page: https://www.ssw.com.au/ssw/Consulting… || Subscribe for more content from SSW TV || || Press like…
Ulysses Maclaren with the best tips on how to keep your professional integrity. Read the rules ↴ https://rules.ssw.com.au/do-you-have-… https://rules.ssw.com.au/professional… 00:00 – Why Professional Integrity? 00:45 – Example – What Not to Do 01:46 – How to Maintain Your Integrity 04:27 – Good Example Benefits of Integrity 06:56 – Tools to Improve Your Integrity 13:13 –…
Web Application development is hard – Why choose SSW Featuring SSW General Manager, Ulysses Maclaren. Consulting page: https://www.ssw.com.au/ssw/Consulting… || Subscribe for more content from SSW TV || || Press like and leave a comment below to let us know how we’re doing || Twitter ↴ https://twitter.com/ssw_tv Facebook ↴ https://www.facebook.com/SSW.page Created by SSW TV | Videos…
In this talk, Anthony will take an in depth look at Federated Identity using OpenID Connect and OAuth2 Framework for ASP. NET Core using Duende IdentityServer (aka IdentityServer 5). Securing your application is bloody important! With so much jargon to sift through, it’s easy to get lost, for example there’s SSO, OAuth2, SAML 2.0, OpenID…
February Tech News – Supply chain attack! Facebook & Apple privacy showdown and DotNet templates | Adam Cogan
Let’s Talk News with Adam Cogan, talking about some of the latest in the tech industry in February. 00:00 – Introduction – welcome to February’s Tech News 00:15 – Nine signs Google deal 02:08 – Coding news – supply chain attack!! 05:02 – Facebook & Apple privacy showdown 06:38 – Project Bicep – next generation…
January Tech News – Power Apps, new Teams interface, and how Apple Watch is fighting COVID-19 | Adam Cogan
Adam Cogan talks about some exciting new developments with Power Apps, Azure SQL, the new Microsoft Teams interface, Apple Watch helping in the fight against COVID-19, and more! 00:00 – Introduction – welcome to 2021! 00:24 – Power Apps turning emails into mobile notifications 01:21 – Reference: Power Apps new naming: https://youtu.be/SU910ZzDp7M 02:03 – Azure…
In this Tech Talk, Andreas Lengkeek has a chat with Mehmet Ozdemir. We learn about Multitenancy with SQL Server, and go through some scenarios where this might be useful. In this video SSW Solution Architect Mehmet Ozdemir chats with Andreas Lengkeek about the three options for Multitenancy with SQL Server and how he goes about…
The world has embraced Serverless computing, but some systems still end up with the same problems we thought would be a thing of the past. William covers how we should apply familiar SOLID principles to our Serverless Application architecture and infrastructure. This lets you create systems that are are light, easy to maintain, and benefit…
Unleash the power of VS Code! VS Code is hot, there’s no doubt about it being an utterly amazing editor, but are you using it to its full potential? In this session, SSW’s Software Architect Andreas Lengkeek discusses with Aaron Powell his NDC Talk ‘Unleash the Power of VS Code’