Hi everyone,
I have again some doubts about assemblies.
Suppose that w ecreate a class and then use some classes from different packages in this class.
So, when I examine the references section about my project, I see that the all packages that I use is added into it.
My question is that when I execute my program in the same class(in other words , my main method is located in the class that I use), do the assembly file, which is createn at the compile time, consist of the reference section and my own class
Menawhile, I know that assembly file also contain metada and manifest but I refer to the IL part.
Thanks
I have again some doubts about assemblies.
Suppose that w ecreate a class and then use some classes from different packages in this class.
So, when I examine the references section about my project, I see that the all packages that I use is added into it.
My question is that when I execute my program in the same class(in other words , my main method is located in the class that I use), do the assembly file, which is createn at the compile time, consist of the reference section and my own class
Menawhile, I know that assembly file also contain metada and manifest but I refer to the IL part.
Thanks

assembly file
Stéphane Beauchemin
In short: one project in Visual Studio will compile to one assembly (basicaly, except for the new ASP.Net website or when you have projects under projects and so on...). This can be one of the project types like Windows Application, Console Application, Class Library and so on.
Referenced code is NOT compiled into your own assembly. When referencing assemblies from the .Net framework for instance, the resulting assembly will use the .Net framework assemblies contained in the Global Assembly Cache (GAC) on the computer it is called on. That's the reason a computer needs the .Net framework installed when you want to run a .Net application.
When you reference third party assemblies which are not in the GAC, compiling your assembly will copy that assembly and put it next to your assembly. So the code is not incorporated in your own assembly, but copied next to it.
HTH
gg1
Another question is that , can we also be regarded System, System.Data,... namaspaces as a DLL files of .NET platform
Avy32
Now I think I kept the idea. References are different concept from Assemblies. They are like a storage that we put all the DLL's or assemblies which we are going to use in our project.
However, assembly consist of the main namespace only which contains the whole project, is not it
Thanks
zackasan
1 )main namespace(For example: namespace ClassLibrary1)of the project ,
2 ) DLL file of the project
3 ) Assembly of the project
Shahab03
I finally found the answer of my last question.
We can only add the .dll files into the references which we are going to use the classes of.
System namespace has a description called System.dll and its type is Assembly.
Thanks
raingod_zippo
jiao
Would anyone please help me about this
Thanks
QWERTYtech
A namespace is basically nothing else than the name of the box your classes are in. If you need stuff that's got something to do with reflection, look in the box System.Reflection. For Forms-stuff, get te box System.Windows.Forms.
donno20
So how can an assembly file be an exe file at the same time
Tara H
Does the assembly files consit of the main namespace which inculde the project that currently using and the the packages in the reference part
Thanks