1

Anyone know what would make vs2010 not deploy .json files when doing a publish? All the other files (.js,.html, etc.) publish, but the .json files just to not move.

I don't think I've done anything special that would prevent that so any thoughts would be appreciated.

Peter Kellner
  • 14,748
  • 25
  • 102
  • 188

2 Answers2

5

Right click on the file choose "properties" and set "content" as for the "Build Action"
.JSON is not known to VS2010 web application file types You can change the behavior of vS2010 by editing the registry

Kamyar Nazeri
  • 25,786
  • 15
  • 50
  • 87
0

If your choosing to only deploy nessicary files, visual studio may not have any hard links to the json files, and thusly does not include them in the deploy. You can choose to deploy all files in Package/Publish settings. Or just ftp the json files manually.

j_mcnally
  • 6,928
  • 2
  • 31
  • 46