Visual Studio Web 部署 - 将发布配置文件更新为“发布期间预编译"; [英] Visual Studio Web Deployment - update publish profile to "Precompile during publishing"

查看:39
本文介绍了Visual Studio Web 部署 - 将发布配置文件更新为“发布期间预编译";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个在 Windows Server 2012 R2 上运行的网站.我已将我的站点部署到服务器上的特定文件夹,而未使用发布期间预编译"选项.该网站运行良好.

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.

推荐答案

更新发布配置文件工作正常,发布负责其余的工作.它删除需要删除的内容,预编译代码,然后将其发布到服务器.

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.

这篇关于Visual Studio Web 部署 - 将发布配置文件更新为“发布期间预编译";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆