{"id":14914,"date":"2015-01-16T07:55:00","date_gmt":"2015-01-16T07:55:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2015\/01\/16\/making-it-better-updates-for-asp-net-5-in-visual-studio-2015-ctp-5\/"},"modified":"2024-01-22T13:40:58","modified_gmt":"2024-01-22T21:40:58","slug":"making-it-better-updates-for-asp-net-5-in-visual-studio-2015-ctp-5","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/making-it-better-updates-for-asp-net-5-in-visual-studio-2015-ctp-5\/","title":{"rendered":"Making It Better: Updates for ASP.NET 5 in Visual Studio 2015 CTP 5"},"content":{"rendered":"<p>It&#8217;s been about two months since we released the first beta of ASP.NET 5, and today we happy to announce that ASP.NET 5 Beta2 is available. For developers using Visual Studio, you&#8217;ll find great new tools to support and enhance your development process.&nbsp; All ASP.NET developers will be able to take advantage of a new runtime and many product quality improvements.<\/p>\n<p>You can download and install Visual Studio 2015 CTP5 by following the link at the top of the <a href=\"http:\/\/asp.net\/vnext\">http:\/\/asp.net\/vnext<\/a> page.&nbsp; If you want to try ASP.NET 5 with an alternate editor or on Mac or Linux, just follow the instructions on our <a href=\"http:\/\/github.com\/aspnet\/home\">ASP.NET GitHub project Home repo<\/a> to get setup using just a command prompt.&nbsp; If you already have ASP.NET installed and only want to update your packages using NuGet you can simply run this command at the command prompt:<\/p>\n<p><span style=\"font-family: 'courier new', courier;color: #ffffff;background-color: #000000\">kvm upgrade&nbsp;<\/span><\/p>\n<p>and the latest version of the ASP.NET runtime will be downloaded from NuGet and installed for you to use on your workstation.<\/p>\n<p>There are a ton of great new features available with this preview release, and in this post we&#8217;re going to cover a few of the ones that we have heard the most feedback about. You can also read about all of the new runtime enhancement by checking out the <a href=\"https:\/\/github.com\/aspnet\/Home\/releases\/tag\/v1.0.0-beta2\">ASP.NET 5 Beta2 release notes<\/a> on GitHub.<\/p>\n<p><strong>Reference existing projects from ASP.NET 5 projects<\/strong><\/p>\n<p>In previous preview releases you could only reference other ASP.NET 5 projects from an ASP.NET 5 project. You can now reference your existing projects from an ASP.NET 5 project using the Add Reference dialog.&nbsp;<\/p>\n<p style=\"text-align: center\">&nbsp;<a href=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2015\/01\/7853.references.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2015\/01\/7853.references.png\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<p><strong>Run and debug commands defined in project.json<\/strong><\/p>\n<p>In addition to being able to run and debug your project you can now also run and debug any command defined in your project.json file directly from Visual Studio.<\/p>\n<p style=\"text-align: center\">&nbsp;<a href=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2015\/01\/0458.commands.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2015\/01\/0458.commands.png\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<p>The default project.json for the ASP.NET 5 Starter Web template includes commands for self-hosting, MVC scaffolding, and for Entity Framework migrations.<\/p>\n<p><span style=\"font-family: 'courier new', courier\">&nbsp; &nbsp; &#8220;commands&#8221;: {<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/* Change the port number when you are self hosting this application *\/<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;web&#8221;: &#8220;Microsoft.AspNet.Hosting &#8211;server Microsoft.AspNet.Server.WebListener &#8211;server.urls http:\/\/localhost:5000&#8221;,<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;gen&#8221;: &#8220;Microsoft.Framework.CodeGeneration&#8221;,<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;ef&#8221;: &#8220;EntityFramework.Commands&#8221;<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier\">&nbsp;&nbsp;&nbsp; },<\/span><\/p>\n<div>&nbsp;<\/div>\n<p>This update will allow you to continue running in Visual Studio if you don&#8217;t want to bring up a command prompt to execute these commands. The new &#8220;gen&#8221; command allows developers with any editor to scaffold ASP.NET MVC components easily at the command line.&nbsp; Here&#8217;s a quick example of how easy it is to generate an MVC Controller:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2015\/01\/6131.scaffold.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2015\/01\/6131.scaffold.gif\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<p><strong>Select which browser to use when running or debugging<\/strong><\/p>\n<p>Select which browser you want to use (ex. IE, Chrome, Firefox, etc.) when running or debugging an ASP.NET 5 web application from within Visual Studio.<\/p>\n<p style=\"text-align: center\">&nbsp;<a href=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2015\/01\/1325.browserChoice.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2015\/01\/1325.browserChoice.png\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<p><strong>Summary<\/strong><\/p>\n<p>We hope you enjoy these new improvements.&nbsp; Some of these changes have been implemented due to the feedback we received.&nbsp; Remember: we are working with the community to ensure that this is the best release of ASP.NET yet.&nbsp; Get involved, and join the conversation on our <a href=\"http:\/\/github.com\/aspnet\/home\/issues\">GitHub project<\/a> to let us know what you think!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been about two months since we released the first beta of ASP.NET 5, and today we happy to announce that ASP.NET 5 Beta2 is available. For developers using Visual Studio, you&#8217;ll find great new tools to support and enhance your development process.&nbsp; All ASP.NET developers will be able to take advantage of a new [&hellip;]<\/p>\n","protected":false},"author":405,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[4,30,7489,7465,7262,7286,7494,7491],"class_list":["post-14914","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-net","tag-announcement","tag-asp-net-5","tag-asp-net-vnext","tag-development","tag-mvc","tag-project-k","tag-visual-studio-2015"],"acf":[],"blog_post_summary":"<p>It&#8217;s been about two months since we released the first beta of ASP.NET 5, and today we happy to announce that ASP.NET 5 Beta2 is available. For developers using Visual Studio, you&#8217;ll find great new tools to support and enhance your development process.&nbsp; All ASP.NET developers will be able to take advantage of a new [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/14914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/405"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=14914"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/14914\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=14914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=14914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=14914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}