asp.net单个文件发布 [英] asp.net single file publish

查看:103
本文介绍了asp.net单个文件发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有发表我的网站。使用发布在VS 2008网站。
现在我想更新单个文件。
所以我需要重新编译整个网站并再次将其上传到服务器,或者我只是发布此单一文件,并将其上传到服务器。

i have publish my website. using publish website in vs 2008. Now i want to update a single file. So do i need to recompile the whole web-site and upload it to the server again, or i will just publish this single file and upload it to the server.

如果我可以编译单个文件那该怎么办呢,还怎么更新到服务器?

if i can compile a single file then how to do it, also how to update it to the server?

推荐答案

取决于你的web项目是否是一个Web应用程序项目或网站项目。如果它的一个网站,那么你可以更新的文件复制到服务器和ASP.NET将重新编译它。

Depends on whether your web project is a web application project or web site project. If its a web site, then you can just copy your updated file to the server and ASP.NET will recompile it for you.

如果您的Web项目是一个Web应用程序项目,并且您更改了code的后面,则需要重新编译该项目,并重新部署DLL。

If your web project is a web application project, and you made changes to the code behind, you'll need to recompile the project, and redeploy the DLL.

此外,如果你只是更新一个ASPX页面(不是code后面,ASPX.cs),你应该能够不编译部署。

Also, if you're just updating an ASPX page (not the code behind, ASPX.cs), you should be able to deploy it without compiling.

这篇关于asp.net单个文件发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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