仅Web部署更改文件 [英] Web deploy change files only
问题描述
我将Visual Studio 2012 Express与TFS 2012 Express结合使用,并且我已经设置了发布配置文件,以将Web窗体应用程序发布到暂存区域.
Im using Visual Studio 2012 Express with TFS 2012 express and I have setup a publishing profile to publish my web forms application into my staging area.
如果我在应用程序中更改了1个文件然后将其发布,则表明我需要在应用程序中发布所有内容,而不仅仅是发布更改.
If I change 1 file within my application and then publish it, it is detecting that I need to publish everything within my application instead of just the changes.
我具有要在发布期间进行预编译的配置文件设置,然后在用于预编译的配置下,可以将允许预编译的站点更新为UNTICKED,然后将所有输出合并到单个程序集中.
I have my profile setup to precompile during publishing then under the configuration for precompile I have the allow precompiled site to be updateable UNTICKED and then I merge all outputs into a single assembly.
如果我不合并它们并允许更新,那么它可以正常工作,有没有办法在没有这些设置的情况下使它工作?
If I dont merge them and allow updates then it works fine, is there a way to get it working without having these set?
推荐答案
DreamOn01,您好
Hi DreamOn01,
我可以知道,如果您仅修改前端即HTML页面,那么该设置可以正常工作吗?
May i know if you only modify your frontend which is your HTML page, will the setting works fine?
另一个问题是您正在使用网站还是Web应用程序.
Another question is you are working for Web site or Web Application.
据我所知,可更新检查表示修改后的HTML页面可以工作,但后端将无法工作.
As I know updateable checked means the modified HTML page can work but the backend wont work.
这是我在StackOverFlow上找到的关于预编译可更新说明的内容: http://stackoverflow.com/questions/11975787/what-is-the-difference-between-allowing-a-precompiled-visual-studio-web-page-to ,此设置仅适用于网站但不是Web应用程序.
Here is what I found on StackOverFlow for the precompile updateable explanation: http://stackoverflow.com/questions/11975787/what-is-the-difference-between-allowing-a-precompiled-visual-studio-web-page-to, the setting is only workable for web site but not web application.
另外为您提供了一个非常有用的链接: https://docs.kentico.com/display/K8/Precompiling+websites
Additionally a quite usefule link for you: https://docs.kentico.com/display/K8/Precompiling+websites
======
-詹姆斯
这篇关于仅Web部署更改文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!