部署问题 [英] Deployment Question

查看:85
本文介绍了部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑到保护知识产权,在部署

ASP.NET应用程序时,是否必须部署所有代码隐藏文件?

(例如, default.aspx.cs),或者我可以简单地部署ASPX和ASCX文件,

将所有代码隐藏文件中的所有代码编译成混淆的

程序集?我需要知道我需要分发的最小文件数。

.ascx文件及其相关的代码隐藏文件怎么样?


谢谢。

In consideration of protecting intellectual property, when deploying an
ASP.NET application, do I have to deploy all of the code-behind files?
(e.g., default.aspx.cs), or can I simply deploy the ASPX and ASCX files,
with all the code from all code-behind files compiled into an obfuscated
assembly? I need to know the minimum number of files I need to distribute.
What about .ascx files and their associated code-behind files?

Thanks.

推荐答案

你好Jeff,


代码隐藏文件被编译成一个可以找到的dll在您的应用程序的bin \\ / $
目录中。基本上.aspx文件和bin中的dll

目录就足以运行你的应用了。


虽然VS.NET中有一个选项为你这样做:


使用选项复制项目从VS.NET项目菜单中,然后指定

只运行此应用程序所需的文件。


希望它有所帮助,


Gerben van Loon。


" Jeff S" <雅***** @ OkeyDokey.com>在消息中写道

新闻:OW ************* @ tk2msftngp13.phx.gbl ...
Hi There Jeff,

The code-behind files are compiled into a dll which can be found in the bin
dir of your application. So basicly the .aspx files and the dll in the bin
dir would be enough to run your app.

Though there is an option in VS.NET to do this for you:

Use the option "Copy project" from the VS.NET project menu and then specify
"Only files needed to run this application".

Hope it helps,

Gerben van Loon.

"Jeff S" <Ya*****@OkeyDokey.com> wrote in message
news:OW*************@tk2msftngp13.phx.gbl...
考虑到保护知识产权,在部署ASP.NET应用程序时,是否必须部署所有代码隐藏文件?
(例如,default.aspx.cs),或者我可以简单地部署ASPX和ASCX文件,
将所有代码隐藏文件中的所有代码编译成混淆的
程序集?我需要知道我需要分发的最小文件数。
.ascx文件及其相关的代码隐藏文件怎么样?

谢谢。
In consideration of protecting intellectual property, when deploying an
ASP.NET application, do I have to deploy all of the code-behind files?
(e.g., default.aspx.cs), or can I simply deploy the ASPX and ASCX files,
with all the code from all code-behind files compiled into an obfuscated
assembly? I need to know the minimum number of files I need to distribute.
What about .ascx files and their associated code-behind files?

Thanks.



Jeff S写道:
Jeff S wrote:
考虑到保护知识产权,在部署ASP.NET应用程序时,我必须部署所有代码隐藏文件?
(例如,default.aspx.cs),或者我可以简单地部署ASPX和ASCX文件,
包含所有代码隐藏的所有代码文件编译成混淆的
程序集?我需要知道我需要分发的最小文件数。
.ascx文件及其相关的代码隐藏文件怎么样?

谢谢。
In consideration of protecting intellectual property, when deploying an
ASP.NET application, do I have to deploy all of the code-behind files?
(e.g., default.aspx.cs), or can I simply deploy the ASPX and ASCX files,
with all the code from all code-behind files compiled into an obfuscated
assembly? I need to know the minimum number of files I need to distribute.
What about .ascx files and their associated code-behind files?

Thanks.




在VS.NET 2003中有一个混淆器,我相信,但不是真的在我心中坚如磐石。如果您需要更多保护,请寻找第三方

混淆器。


-

Craig Deelsnyder

Microsoft MVP - ASP / ASP.NET



There''s an obfuscator in VS.NET 2003 I believe, but not really
rock-solid in my mind. If you need more protection, seek out 3rd party
obfuscators.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


这篇关于部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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