如何更新一类asp.net网站并仅发布该文件仅适合已发布的网站 [英] How do I update a class of asp.net website and publish only that file only to fit to already published website

查看:84
本文介绍了如何更新一类asp.net网站并仅发布该文件仅适合已发布的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net网站,将通过IIS发布和托管。该网站有很多aspx页面和.cs ....我需要的是每周只更新网站的一个类文件中的代码。为此,我想到的不是更新一个类并重新发布整个网站。只需创建一个包含要更新的类文件代码的示例文件。该类代码已更改,仅发布该类,然后将其附加到Web服务器上的当前已发布位置。



但是,已发布的应用程序仅显示客户端代码,而不是服务器端代码(.cs代码)。所以我的想法在这里失败了



要更新的类中包含的代码是条件,其中包含两行代码。



我怎么能在一般的练习中这样做。



请不要为我提供每周触发器或类似选项。



任何帮助??

提前谢谢...

I have a asp.net website which will be published and hosted via IIS. The website has many aspx pages and .cs .... My need is to just update code in one class file of the website on weekly basis.. For this, instead of updating one class and re publishing the entire website, i thought of simply creating a sample file containing the code of class file that is to be updated. That class code is changed and only that class is published and then appended to current published location on web server.

However, published apps only shows client side code, not server side code(.cs code). So my thoughts failed here.

The code contained in class to be updated is if condition with two lines of code inside it.

How can i do this in a common practice.

Please do not refer weekly trigger or similar option for me .

Any help??
Thanks in advance...

推荐答案

听起来你只需要编译和复制site.dll文件到服务器。您将在相应的bin子文件夹中找到它。如果你构建为Debug然后bin / debug / mysite.dll。如果需要,替换释放以进行调试。
Sounds like you only need to compile and copy the site.dll file to the server. You'll find that in the appropriate bin sub-folder. If you build as Debug then bin/debug/mysite.dll. Substitute release for debug if required.


这篇关于如何更新一类asp.net网站并仅发布该文件仅适合已发布的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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