将ASP.NET应用程序合并到单个dll中 [英] Merge ASP.NET application into single dll

查看:117
本文介绍了将ASP.NET应用程序合并到单个dll中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有更简单的方法来编译所有文件,即. .js,图像,.ascx,.aspx文件转换为单个dll?

我知道我们可以预编译所有应用程序,然后使用aspnet_merge.exe合并它们.

我需要知道他们是否是执行这项工作的更简单方法.

找到一种更简单方法的主要动机是消除了为每个.aspx和.ascx页添加处理程序的要求,以便在使用aspnet_merge.exe

Is there a simpler way to compile all the files viz. .js, images, .ascx, .aspx files into single dlls?

I know the we can precompile all application and then merge them using aspnet_merge.exe.

I need to know whether their is some simpler way to perform this job.

Main motive to find a simpler way is to remove the requirement to add handlers for each .aspx and .ascx pages to use them when they are merged using aspnet_merge.exe

推荐答案

如果要创建dll,则必须创建类库

文件菜单->新项目->选择您的编程语言C#/VB等-> Windows->类库.

比类库中的代码
构建您的解决方案,您将在项目文件夹中找到dll \ bin \ debug或释放
If you want to make dll than you have to create class library

File menu -> New Project -> choose your Programing language C#/VB etc -> Windows -> Class Library.

than code in class library
built your solution and you will find dll in your project folder\bin\debug or release


这篇关于将ASP.NET应用程序合并到单个dll中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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