Search code examples
asp.net-mvcvisual-studio-2010publish

Why Visual Studio doesn't move some files in publish?


When I try to publish my project, Visual Studio doesn't move some files to target publish folder. Currently I have this problem with .json files. I'm using Visual Studio 2010 and MVC4.

Is there any configuration about which files or mime-types should be published and moved to target folder?


Solution

  • When you want to Visual Studio move files to target publish folder click right on the file in solution explorer and select properties then set Build Action to Content.