Visual Studio Web Deployment - update publish profile to “Precompile during publishing”

时间秒杀一切 提交于 2019-12-23 04:21:16

问题


I currently have a website that is run on Windows Server 2012 R2. I have deployed my site to a specific folder on the server without using the "precompile during publishing" option. The website works and runs fine.

However, in order to improve the performance of my site, I want to update my publish profile to precompile during publishing. Will I need to delete the existing website files on the server? And what is the best way/practices of going about with this change in order not to break anything?

Note: The website is still new, so I do not need to preserve any data.


回答1:


Updating thepublish profile works fine and the publishing takes care of the rest. It removes what needs to be removed, precompiles the code and thereafter publishes it to the server.

Using the above settings maintains the website state without causing any issues. So no other action is required from you in terms of handling the server.



来源:https://stackoverflow.com/questions/40190258/visual-studio-web-deployment-update-publish-profile-to-precompile-during-publ

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!