{"id":36897,"date":"2017-07-13T18:56:39","date_gmt":"2017-07-14T01:56:39","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/?p=9985"},"modified":"2017-07-13T18:56:39","modified_gmt":"2017-07-14T01:56:39","slug":"development-time-iis-support-for-asp-net-core-applications","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/development-time-iis-support-for-asp-net-core-applications\/","title":{"rendered":"Development time IIS support for ASP.NET Core Applications"},"content":{"rendered":"<p><span>With a recent update to Visual Studio 2017, we have added support for debugging ASP.NET Core applications against IIS. This blog post will walk you through enabling this feature and setting up your project to use this feature.<\/span><\/p>\n<h2>Getting Started<\/h2>\n<p>To get started:<\/p>\n<ul>\n<li>You need to install Visual Studio 2017 (version 15.3) Preview (it will not work with any earlier version of Visual Studio)<\/li>\n<li>You must have the<span>\u00a0<\/span><em>ASP.NET and web development<\/em><span>\u00a0<\/span>workload OR the<span>\u00a0<\/span><em>.NET Core cross-platform development<\/em><span>\u00a0<\/span>workload installed<\/li>\n<\/ul>\n<h3>Enable IIS<\/h3>\n<p><span>Before you can enable\u00a0<\/span><em>Development time IIS support<\/em><span>\u00a0in Visual Studio, you will need to enable IIS. You can do this by selecting the\u00a0<\/span><em>Internet Information Services<\/em><span>\u00a0checkbox in the\u00a0<\/span><em>Turn Windows features on or off<\/em><span>\u00a0dialog.<\/span><\/p>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2017\/07\/enable_iis.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2017\/07\/enable_iis-1.png\" alt=\"\" width=\"415\" height=\"368\" class=\"alignnone size-full wp-image-9996\" \/><\/a><\/p>\n<p><span>If your IIS installation requires a reboot, make sure to complete it before proceeding to the next step.<\/span><\/p>\n<h3>Development time IIS support<\/h3>\n<p><span>Once you&#8217;ve installed IIS, you can launch the Visual Studio installer to modify your existing Visual Studio installation. In the installer select the\u00a0<\/span><em>Development time IIS support<\/em><span>\u00a0component which is listed as optional component under the\u00a0<\/span><em>ASP.NET and web development<\/em><span>\u00a0workload. This will install the ASP.NET Core Module which is a native IIS module required to run ASP.NET Core applications on IIS.<\/span><\/p>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2017\/07\/development_time_support.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2017\/07\/development_time_support-1.png\" alt=\"\" width=\"1290\" height=\"720\" class=\"alignnone size-full wp-image-9995\" \/><\/a><\/p>\n<h2>Adding support to an existing project<\/h2>\n<p><span>You can now create a new launch profile to add Development time IIS support . Make sure to select\u00a0<\/span><em>IIS<\/em><span>\u00a0from the\u00a0<\/span><strong>Launch<\/strong><span>\u00a0dropdown in the Debug tab of Project properties of your existing ASP.NET Core application<\/span><\/p>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2017\/07\/project_properties.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2017\/07\/project_properties-1.png\" alt=\"\" width=\"1034\" height=\"638\" class=\"alignnone size-full wp-image-10005\" \/><\/a><\/p>\n<p><span>Alternativately, you can add manually a launch profile to your\u00a0<\/span><code>launchSettings.json<\/code><span>\u00a0file.<\/span><\/p>\n<pre>{\n    \"iisSettings\": {\n        \"windowsAuthentication\": false,\n        \"anonymousAuthentication\": true,\n        \"iis\": {\n            \"applicationUrl\": \"http:\/\/localhost\/WebApplication2\",\n            \"sslPort\": 0\n        }\n    },\n    \"profiles\": {\n        \"IIS\": {\n            \"commandName\": \"IIS\",\n            \"launchBrowser\": \"true\",\n            \"launchUrl\": \"http:\/\/localhost\/WebApplication2\",\n            \"environmentVariables\": {\n                \"ASPNETCORE_ENVIRONMENT\": \"Development\"\n            }\n        }\n    }\n}\n<\/pre>\n<p><span>Congratulations! At this point, your project is all set up for development time IIS support. You may be prompted to restart Visual Studio if weren&#8217;t running as an administrator.<\/span><\/p>\n<h2>Conclusion<\/h2>\n<p><span>We look forward to you trying out this feature and let us know how it works for you. You can do that below, or via twitter\u00a0<\/span><a href=\"https:\/\/twitter.com\/AndrewBrianHall\">@AndrewBrianHall<\/a><span>\u00a0and\u00a0<\/span><a href=\"https:\/\/twitter.com\/sshirhatti\">@sshirhatti<\/a><span>.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With a recent update to Visual Studio 2017, we have added support for debugging ASP.NET Core applications against IIS. This blog post will walk you through enabling this feature and setting up your project to use this feature. Getting Started To get started: You need to install Visual Studio 2017 (version 15.3) Preview (it will [&hellip;]<\/p>\n","protected":false},"author":1233,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"quote","meta":{"_acf_changed":false,"footnotes":""},"categories":[197,7509],"tags":[],"class_list":["post-36897","post","type-post","status-publish","format-quote","has-post-thumbnail","hentry","category-aspnet","category-aspnetcore","post_format-quote"],"acf":[],"blog_post_summary":"<p>With a recent update to Visual Studio 2017, we have added support for debugging ASP.NET Core applications against IIS. This blog post will walk you through enabling this feature and setting up your project to use this feature. Getting Started To get started: You need to install Visual Studio 2017 (version 15.3) Preview (it will [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/36897","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\/1233"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=36897"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/36897\/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=36897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=36897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=36897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}