I use the Publish command in Visual Studio to deploy a web application to my IIS server.
It is very convenient but I have several issues with it, such as:
- It does not deploy the Crystal Report files (*.rpt) files
- It deploys the web.config file and overwrites the server specific settings
Is there any way that I can customize what the Publish command does?
Thanks
When publishing your Web Application, Visual Studio will respect the "build action" set for each file in your project. Make sure you pick the right actions for the files. Here are your options:
In this particular case, the
.rptfiles should probably be set to Content and theweb.configshould be set to None. The build action for a file can be changed in the property window when the file is selected in the solution explorer.