我如何将aspx和.cs文件放在一个应用程序的两个独立项目中 [英] How I can put aspx and .cs file in two separate projects for one application

查看:141
本文介绍了我如何将aspx和.cs文件放在一个应用程序的两个独立项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在(asp.net 2.0)中开发一个应用程序,我喜欢将我的aspx文件放在网站中,将我的.cs文件放在一个单独的项目中。我想将.cs放在一个单独的项目中的原因是我不想在我的客户端部署应用程序时将.cs文件提供给我的客户端。


我的问题是我想为这两个创建一个调试环境。在发布时我喜欢在我的网站bin文件夹中为.cs文件项目创建dll。


请帮我怎么做。

解决方案

为了保持代码的私密性,你应该把它编译成一个你说你已经在做的dll。您可以在Visual Studio中调试dll文件和文件后面的常规代码。


博士B


如何调试dll文件以及文件后面的普通代码。

我需要在一个解决方案中添加网站和dll项目


我只能从我对自己的网络项目做的事情,但如果我添加了对我写的dll的引用,那么运行我的调试中的网站我可以逐步浏览dll,好像它背后的代码一样。


这对你有用吗?


B博士

I would like to develope one application in (asp.net 2.0)where I like to have my aspx files in website and my .cs files in a separate project.The reason I like to put .cs in a separate project is I do not want to give .cs files to my client while deploying my application in their server.

My problem is I like to create one debug env for these two .During the release i like to create the dll for the .cs file project in my website bin folder.

Please help me how to do that.

解决方案

In order to keep your code private you should compile it into a dll which you say that you are already doing. You can debug your dll files alongside your normal code behind files in Visual Studio.

Dr B


how to debug the dll files along with normal code behind files .
Do I need to add both website and dll project in one solution


I can only go from what I do with my own web projects but if I add a reference to a dll i''ve written then run my website in debug I can step through the dll as if it was code behind.

Does this work for you?

Dr B


这篇关于我如何将aspx和.cs文件放在一个应用程序的两个独立项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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