When I try to publish my project, Visual Studio does not move some files to the publishing destination folder. I currently have this problem with .json files. I am using Visual Studio 2010 and MVC4.
.json
Is there any configuration about which files or mime types should be published and transferred to the destination folder?
If you want Visual Studio to move the files to the target publication folder, right-click on the file in the solution explorer and select properties, and then set the "Create action for content".
You can set the Copy to file output directory property in Visual Studio. Click the file name, press F4 to open the properties, and set Copy to Output Directory to Copy always or Copy if newer .
F4
Copy to Output Directory
Copy always
Copy if newer
Source: https://habr.com/ru/post/1445464/More articles:Adding data to an undeclared list - pythonREST Client in C ++ - c ++Receiving an image from an SD card and camera - androidIIS 7.5 Unable to load custom HTTP handler with codebehind file - c #CSS background color and text change with jquery / javascript - jqueryRun a stored procedure by returning multiple tables without using SqlDataAdapter.Fill ()? - .netTkinter Entry Widget - error if record is not int - pythonAdditive Assignment Operator in Cuda C - gpgpuHow to get great value XML node - xmlcucumbers and junit have the wrong number of tests in jenkins (direct fire) - mavenAll Articles