Assembly (programming)

In computer programming an assembly is a runtime unit consisting of types and other resources. All types in an assembly have the same version number.

Often, one assembly has only one namespace and is used by one program. But it can span over several namespaces. Also, one namespace can spread over several assemblies. In large designs, an assembly may consist of multiple files that are held together by a manifest (i.e. a table of contents).

In C#, an assembly is the smallest deployment unit used, and is a component in .NET. In Java, it is a JAR file.[1]

Creation of an assembly

Creation of assemblies and modules in C#

Every compilation creates either an assembly or a module in C#. It is possible to add other modules with the assembly linker (al). A speciality of Java is to create a *.class file for each class, which is not the case in C#. The creation can be activated by compiler switches, like csc /addmodule:Y.netmodule A.cs that yields a new A.exe with Y added to this assembly.[2]

gollark: I can't actually see an RSS feed for EG changes, so that may actually not be possible.
gollark: Someone else wanted the levelling bot thing. I mentioned my own jokingly, and am nonjokingly suggesting the RSS thing.
gollark: It is.
gollark: In terms of actual utility, it might be nice to have one of those RSS bots post new changes to the Encyclopaedia Galactica in a channel here, or forum topics or something.
gollark: I don't think they're very good, but they seem popular, possibly because it's an easy feature so lots of bots with useful capabilities have it and nobody bothers to disable that.

References

  1. Mössenböck, Hanspeter (2002-03-25). "Advanced C#: Variable Number of Parameters" (PDF). http://ssw.jku.at/Teaching/Lectures/CSharp/Tutorial/: Institut für Systemsoftware, Johannes Kepler Universität Linz, Fachbereich Informatik. p. 37. Retrieved 2011-08-05.
  2. Mössenböck, Hanspeter (2002-03-25). "Advanced C#: Variable Number of Parameters" (PDF). http://ssw.jku.at/Teaching/Lectures/CSharp/Tutorial/: Institut für Systemsoftware, Johannes Kepler Universität Linz, Fachbereich Informatik. pp. 38–40. Retrieved 2011-08-05.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.