Today, I was working on a sample project with ASP.NET vNext. I have been working on this application without any Visual Studio IDE support but I decided to discover what Visual Studio 14 CTP 3 is bring to the table. I know that Visual Studio CTP 3 has launched a while back and I was expecting to have trouble working with ASP.NET vNext beta builds (hot from the developer machine. Find them here). I was partially right. I wasn’t able to run the web application from Visual Studio. However, it’s still possible to debug the application and I have a workaround for you :)
As I was thinking from the very beginning that I would have trouble with VS 14 CTP 3 + vNext beta builds, I started setting up my environment from the command line instead of letting the VS handle this.
However, Visual Studio still insisted on installing the Aplha3 builds of the K Runtime but anyways. That’s not big of a deal as long as I have the beta one as the active runtime. When I open up the solution, everything looked OK. Even the package restore was successful.
The build was also working. Awesome!
So, it was all going great till I realized that I was building with the OutputType set to "Class Library".
As soon as I changed it to Web Application, the build broke:
This is OK and expected as things have changed since Visual Studio 14 CTP 3 shipped. However, I’m unable to debug my application now. Hmm, not entirely. There are still options and I went with the easier one. I switched back to command line and ran the application from there with "k web" command:
All good as you can see. Now, back to Visual Studio and press CTRL + ALT + P to bring up the Attach Process dialog box. We are looking for klr.exe to attach but you will probably see two instances of klr there. We need the one that actually hosts our application. You can find out which one is the actual host by looking at the command line arguments from the Task Manager.
In my case, it’s with the PID 1472. Finally, attach the process and you should be able to debug the application now.
Web development experience with .NET has never seen a drastic change like this since its birth day. Yes, I’m talking about ASP.NET vNext :) I have been putting my toes into this water for a while now and as of today, I am starting a new blog post series about ASP.NET vNext (with hopes that I will continue this time :)). To be more specific, I’m planning on writing about the things I am actually excited about this new cloud optimized (TM) runtime. Those things could be anything which will come from ASP.NET GitHub account: things I like about the development process, Visual Studio tooling experience for ASP.NET vNext, bowels of this new runtime, tiny little things about the frameworks like MVC, Identity, Entity Framework.
To kick things off, I would like to lay out the resources about ASP.NET vNext here. Enjoy them and start discovering what is coming up for the web development with .NET :)
Getting Started Material
- ASP.NET vNext: the future of .NET on the Server
- Introducing ASP.NET vNext by Scott Hanselman
- ASP.NET vNext - August 2014 Status Rollup by Scott Hanselman
- Getting Started with ASP.NET vNext and Visual Studio "14"
- The Next Generation of .NET – ASP.NET vNext
- ASP.NET vNext in Visual Studio “14” CTP
- ASP.NET vNext in Visual Studio “14” CTP 2
- ASP.NET vNext in Visual Studio “14” CTP 3
- ASP.NET vNext in Visual Studio “14” CTP 4
- ASP.NET vNext by David Fowler
- ASP.NET vNext Overview by David Fowler
- ASP.NET vNext – Alpha3 by David Fowler
- A 30 Minute Look At ASP.NET vNext by Jon Galloway
- Getting Started with ASP.NET vNext by Setting Up the Environment From Scratch by Tugberk Ugurlu
- Microsoft’s Special K – An Introduction to ASP.NET vNext by Jeff Fritz
- EF7 - New Platforms, New Data Stores
Here and There ASP.NET vNext
- KRuntime structure
- Project.json file
- Version Manager: kvm
- Package Manager: kpm
- Configuring the feed used by kpm to restore packages
- Assembly Neutral Interfaces
- Dependency Resolution
- Dependency Injection in ASP.NET vNext
- ASP.NET vNext Routing Overview
- ASP.NET vNext Moving Parts: IConfiguration by Louis DeJardin
- ASP.NET vNext Moving Parts: IBuilder by Louis Dejardin (Keep in mind that IBuilder is now IApplicationBuilder)
- ASP.NET vNext Moving Parts: OWIN by Louis DeJardin
- K, KVM, KPM, KLR, KRE in ASP.NET vNext by Imran Baloch
- Custom Routing in ASP.NET vNext by Imran Baloch
- Getting the Client’s IP Address in ASP.NET vNext Web Applications by Tugberk Ugurlu
- Moving standard OWIN middleware to vNext middleware by Tomas Jansson
- Middlewares and Per Request Dependency Injection by Tugberk Ugurlu
Development Environment and Tooling Experience
- Develop ASP.NET vNext applications on a Mac by Sayed-Ibrahim-Hashimi
- How to customize scaffolding templates for ASP.NET vNext by Sayed-Ibrahim-Hashimi
- Nancy, ASP.Net vNext, OSX and Sublime Text by Jonathan Channon
- How I Got Asp.Net vNext Running on Mac OS X by Andreas Schlapsi
- ASP.NET vNext on OSX and Linux by Graeme Christie
- Installing & Running ASP.NET vNext (Alpha 3) on Ubuntu Linux with Mono 3.8–for real by Christian Weyer
- Debugging ASP.NET vNext Beta Builds with Visual Studio 14 CTP 3 by Tugberk Ugurlu
- Building and Running Your ASP.NET vNext Application with Gulp by Tugberk Ugurlu
- FTP deploy an AspNet vNext application to Microsoft Azure websites
- Deploying ASP.NET vNext apps to Azure Websites by David Ebbo
- Possible ASP.NET VNext Deployed Folder Structure(With and Without Source) by Imran Baloch
- ASP.NET MVC 6 on Azure Websites by Gunnar Peipman
- Assembly Neutral Interfaces by David Fowler
- Assembly Neutral Types Implementation by David Fowler
- Feedback on ASP.NET vNext Dependency Injection by Mark Seemann
- Language Support in the language you're supporting (or eating your own dogfood) by Aleksander Heintz
- Loading all of the things by Aleksander Heintz
- References and Class Library Asp.Net vNext – Alpha 3 by Fredrik Normén
- How to create your own custom configuration source in Asp.Net vNext by Fredrik Normén
- ASP.NET vNext: Custom Project Loaders and Language Support by Roopesh Shenoy
- Profiling ASP.NET vNext using dotemory and dotTrace by Maarten Balliauw
- Getting Started with ASP.NET MVC 6
- ASP.NET MVC 6 vNex by Stephen Haunts
- Introducing ASP.NET vNext and MVC 6 by Jonathan Allen
- Introduction to ASP.NET vNext and MVC 6 by Shailendra Chauhan
- POCO controllers in ASP.NET vNext by Filip W.
- ASP.NET VNext Debugging MVC Source by Imran Baloch
- MVC View Components by Tugberk Ugurlu
- Get Started with ASP.NET MVC TagHelpers by Jeff Fritz
KRuntime: The core of the ASP.NET vNext. Compilation, bootstraping, package discovery and all other core stuff is handled here. Do not miss on this one!
kvm: K Runtime version manager which works on Windows and Unix based systems.
MVC: Written from scratch MVC framework on top of ASP.NET vNext. This new framework unifies the efforts on ASP.NET MVC and ASP.NET Web API. So, all is in one now.
HttpAbstractions: Contains HTTP abstractions for ASP.NET vNext such as HttpRequest, HttpResponse. Also contains IApplicationBuilder and types to create your application's hosting pipeline.
Home: ASP.NET vNext Home repository where you can get a head start on ASP.NET vNext really quickly. Its README file gives you a nice guide to get your machine up and running with the new tools. It also contains tiny samples which you can run and see how things are working in no time.
Configuration: Configuration is a framework for accessing Key/Value based configuration settings in an application.
Caching: Contains libraries for caching for ASP.NET vNext. Another sign that everything is now composable.
Options: Options is a framework for accessing and configuring POCO settings. Tiny thing that makes me happy that even this thing is thought of.
SignalR-Server: ASP.NET SignalR is a is a new library for ASP.NET developers that makes it incredibly simple to add real-time web functionality to your applications. This repository exposes ASP.NET SignalR on top of ASP.NET vNext.
Hosting: The Hosting repo contains code required to host an ASP.NET vNext application, it is the entry point used when self-hosting an application.
INTRODUCING: The Future of .NET on the Server: Very first video on ASP.NET vNext. Join the Lesser Scotts, Hunter and Hanselman, as they introduce you to new thinking around ASP.NET and the .NET Framework. What does ASP.NET look like in 2014 and beyond? In a world of NuGets and modular frameworks, of lightweight VMs, how could ASP.NET change and get faster, leaner, meaner, and more.
DEEP DIVE: The Future of .NET on the Server: Scott Hanselman joins developer David Fowler for this Part 2 Deep Dive into what’s coming in Microsoft ASP.NET. We explore what a decoupled stack looks like, how modules plug together, what this means for performance, and more. We explore the Project codenamed “Helios” and how this new way of writing ASP.NET applications uses OWIN and plugs into IIS giving you more power and choice than ever before.
Channel 9 Live: ASP.NET Developer Q&A with Scott Hunter & Scott Hanselman: The Scotts and David Fowler answer your questions live!
The Future of ASP.NET Part I: Scott Hanselman’s awesome intro talk on ASP.NET vNext at NDC Oslo 2014 conference.
The Future of ASP.NET Part II: David Fowler and Damian Edwards Q&A session on ASP.NET vNext at NDC Oslo 2014 conference.
An Introduction to ASP.NET vNext: Awesome introduction talk by Daniel Roth at TechEd New Zealand 2014.
ASP.NET MVC 6 (now with integrated Web API!): Awesome introduction at dotnetConf 2014 by Daniel Roth on ASP.NET MVC 6 which is a new baby from head to toe. ASP.NET MVC and Web API are being combined into a single framework, ASP.NET MVC 6, for handling all of your Web UI and services. We'll learn how to use ASP.NET MVC and Web APIs in ASP.NET vNext to support connected applications for browsers, Windows Phone, Windows Store and more!
Entity Framework: Rowan Miller gives us an introduction talk at dotnetConf 2014 about Entity Framework 7 which is built on this new .NET Runtime optimized for server. Entity Framework is Microsoft's recommended data access technology for new applications in .NET. We'll explore how the current release of Entity Framework can be used to build applications. We'll also look at an early preview of EF7, a modern, lighter weight, and composable version of Entity Framework (EF) that can be used on a variety of platforms, including ASP.NET vNext, Windows Phone and Windows Store. This new version will also support targeting non-relational data stores.
ASP.NET vNext with Chris Ross: On Web Camps TV, this week Cory is joined by Chris Ross from the ASP.NET team to talk about the vNext bits of ASP.NET. The next version of ASP.NET ("ASP.NET vNext") has been redesigned from the ground up. The goal is to create a lean and composable .NET stack for building modern cloud-based apps.
ASP.NET vNext Community Standup: Meeting recordings from the weekly ASP.NET vNext Community Standup meetings, covering live community Q&A, product team discussion and the most recent updates.
ASP.NET vNext - Everything you need to know in 4 minutes!: Nice intro on new ASP.NET vNext in a short, 4 minutes video. This nicely wraps up what are the new things.
ASP.NET vNext Giriş (in Turkish): 30 minutes webcast on ASP.NET vNext by Tugberk Ugurlu in Turkish.
Dev: ASP vNext: Scott Hunter and Brady Gaster talk about ASP.NET vNext at TechEd Europe 2014
The Future of Microsoft .NET on the Server: Scott Hunter’s TechEd session on ASP.NET vNext at TechEd Europe 2014.
Reconciling ASP.NET vNext with Damian Edwards: Hanselman sits down with Damian Edwards and talks about ASP.NET vNext. There's been a lot of talk around ASP.NET vNext. How did development start, and what's been the thinking about how to manage a new world while still innovating on the current generation of technology? In what ways does ASP.NET vNext break from the past, and in what ways does it build on our existing power and experience?
Evolving ASP.NET Web Development with Scott Hunter: Carl and Richard chat with Scott Hunter about how Microsoft is working to evolve web development for ASP.NET developers. Scott talks about ASP.NET vNext as well.
Herding Code 198: Damian Edwards on ASP.NET vNext, Tag Helpers and SignalR: The guys talk to ASP.NET team member Damian Edwards about ASP.NET vNext (the next version of ASP.NET), Tag Helpers, and what’s new with SignalR.
MusicStore: Best sample out there for ASP.NET vNext by the team. It has two projects: one is for static-rendered Music Store application and the other one is a SPA (Single Page Application). Check out this article for further information about the sample.
MVC Samples: Lots of tiny MVC samples that ASP.NET team is using for functional tests.
Entropy: ASP.NET vNext feature experience playground of ASP.NET team.
MvcSample.Web: ASP.NET MVC 6 sample which highlights quite a lot of its features.
KLoggy: My playground for a few cool things such as ASP.NET vNext, Gulp, Bower, AngularJS. Check it out for sure. I have big plans for this :)
vNextLanguageSupport: A sample by David Fowler that has examples of how to support different languages in the vNext project system.
AspNetVNextSamples: My repository on ASP.NET vNext samples. It’s sort of tiny right now but I’m putting this here anyway hoping that it will get big in near future.
- .NET Core
- ASP.NET 5
- ASP.NET Core
- ASP.NET MVC
- ASP.NET vNext
- ASP.NET Web API
- Aspect Oriented Programming
- Azure Search
- Azure Storage
- Azure Web Apps
- Blob Storage
- Code Review
- Cognitive Services
- Congress & Convention Tourism
- Continious Delivery
- Continuous Delivery
- Continuous Integration
- Data Structures
- Docker Compose
- Entity Framework
- Facts & Figures
- Geek Talks
- IT Stuff
- Machine Learning
- Microsoft Azure
- Microsoft Office
- Microsoft SQL Server
- MS SQL
- Octopus Deploy
- Polyglot Persistance
- Software Development
- Software Engineer
- SQL Injection
- SQL Release
- SQL Server
- Tech Guys
- Time Saviour
- Tourism Business
- Travis CI
- TV Series
- Unit Testing
- Visual Basic
- Visual Studio
- WCF Web API
- Web Application
- Windows 8
- Windows Azure
- Windows Live Writer
- Windows Server AppFabric