Visual Studio does not deploy ASP.NET Core views when they are in an area -


setup

  • visual studio 2015 (with update 3 , latest hotfix of today)
  • .net core sdk (preview 2) installed
  • create new asp.net core project
  • add new area, register , add views in it
  • deploy iis using web deploy in visual studio

part of project.json

"publishoptions": {   "include": [     "wwwroot",     "views",     "areas/**/views",     "appsettings.json",     "web.config"   ] }, 

my publish profile

<?xml version="1.0" encoding="utf-8"?> <project toolsversion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">   <propertygroup>     <webpublishmethod>msdeploy</webpublishmethod>     <lastusedbuildconfiguration>release</lastusedbuildconfiguration>     <lastusedplatform>any cpu</lastusedplatform>     <siteurltolaunchafterpublish>http://somedomain/</siteurltolaunchafterpublish>     <launchsiteafterpublish>true</launchsiteafterpublish>     <excludeapp_data>false</excludeapp_data>     <publishframework>netcoreapp1.0</publishframework>     <usepowershell>true</usepowershell>     <enablemsdeployappoffline>true</enablemsdeployappoffline>     <msdeployserviceurl>http://someip</msdeployserviceurl>     <deployiisapppath>sitename</deployiisapppath>     <remotesitephysicalpath />     <skipextrafilesonserver>true</skipextrafilesonserver>     <msdeploypublishmethod>remoteagent</msdeploypublishmethod>     <enablemsdeploybackup>false</enablemsdeploybackup>     <username>username</username>     <_savepwd>true</_savepwd>     <publishdatabasesettings>       <objects xmlns="" />     </publishdatabasesettings>     <adusesowinoropenidconnect>false</adusesowinoropenidconnect>     <authtype>ntlm</authtype>   </propertygroup> </project> 

the problem

after successful deploy area view missing server. there no area folder nor area's views located in views folder. other views (outside of areas) present.

am doing wrong or problem known? had same problem , if solution?

temporary fix stated on https://github.com/aspnet/mvc/issues/4645 add

"**/*.cshtml", 

in publishoptions.include.

worked in case.


Comments