Visual Studio 2010 “Publish” does not copy Razor view files

前端 未结 2 445
一整个雨季
一整个雨季 2020-12-30 01:43

When using the built-in Publish feature of Visual Studio 2010 with a web application that includes Razor views (.cshtml or .vbhtml), the publish service does not cop

2条回答
  •  伪装坚强ぢ
    2020-12-30 02:39

    You need to set the build action to "Content" under properties.

    Edit: You have to do this on each of the files that aren't being copied over.

    Edit 2: I did some poking around, and found a forum posting over at msdn, sounds like you can edit the registry, or create a pkdef file.

    http://social.msdn.microsoft.com/Forums/en/vsxprerelease/thread/c0212d15-96c4-455d-b7e1-d299c5ef384a

提交回复
热议问题