开发者

ASP.NET compilation element, assemblies element

It's my first post on stackoverflow so at the beginning I would like to say Hello or probably it would be better to say Hello world :). My question is what does this mean

<compilation debug="false" strict="false" explicit="true">
    <assemblies>
       <add assembly="" /> in quotes are info about assemblies
       <add assembly="" /> in quotes are info about assemblies
    </assemblies>
</compil开发者_如何学JAVAation>

I found at msdn that "Defines a collection of assembly names that are used during compilation of an ASP.NET application". (http://msdn.microsoft.com/en-us/library/bfyb45k1.aspx) but what it means, is it like using in code behind (probably not) ? what would happen If I delete some

regards Krzysiek


Hello Krzysiek welcome to SO :-).

To answer your question you are probably referring to the web.config file's assembly section for your asp.net web project. The assembly section simply defines a reference / dll file that your web site may use. For instance, assume you had to write a web application that displayed a flowchart representing your workplace hierarchy.

In this case you noticed that it would be quite difficult to do such a thing from scratch. Your next best bet is to find someone who has already implemented say hierarchies in asp.net. You may find a free one but most would charge you some sort of fee. Once you get this piece of software you need to define it or reference it. That is where the assembly section allows you to define as an example a compiled dll.

Your web.config assembly section will then list it with any other relevant information. Unless you know what you are doing it may not be so wise to simply delete an existing defined assembly.


It's a way to specify assemblies that are "default assemblies" so you don't have to reference them. That is it's purpose; you can still use using/import statements in your code-behind and it will work fine. I would leave existing ones there as other components may rely on that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜