I use msbuild to deploy my web application.
However, my .gz files was not copied to the production folder, so i was wondering why this was happening.
.gz was a part of II7′s MIME types, so it was not MIME type problem.
msdeploy only copies files that are needed for the deploy environment.
which means that it only cipies, dlls and content files.
so i thought Visual Studio/ or msbuild might consider .gz file as non-content type of file that not needed to be copied to the
production folder.
to solve problem :
open your web application on Visual Studio, right-click on the .gz file(or any undefined file) -> go to properties -> Change Build Action to “Content”
this will make .gz files to be content files, so that it will be copied to the production folder by msbild.
Image may be NSFW.
Clik here to view.

Clik here to view.
