What is Assembly? y Assembly? Cant we work without that? what is the need of assembly? y we use them?
Can any one explain me this in detail? i dont need the same bookish definition that it is fundamental unit of.....
plz if any one has simple detail idea/concept or any article then explain me.
thaks
Loading
VulpesPosted Sep 25, 2012, 9:54 AM
Now open up notepad with a file called hello.cs:
notepad hello.cs
type the following into the file and save it.
Now compile the file at the command line by typing this:
csc hello.cs
If you run the 'dir' command, you'll see that a file called hello.exe has been created in the same directory as hello.cs which is your executable assembly. You can direct the compiler to output the assembly anywhere you like using its /out switch.
You can now see what's in the assembly using a utility called ildasm.exe. Just type:
ildasm /text hello.exe
and you should see something similar to the following output:
You'd need to read a specialist book or consult a number of online articles to understand what all this means but it will give you some idea of the amount of info that is generated during the compilation process.
nishant ranjanPosted Sep 26, 2012, 3:38 AM
Cheers!!
nishant ranjanPosted Sep 25, 2012, 7:07 AM
so where it is loaded/stored. and what is location path of private assembly. how can i view it
VulpesPosted Sep 25, 2012, 6:47 AM
nishant ranjanPosted Sep 25, 2012, 6:19 AM
VulpesPosted Sep 25, 2012, 6:12 AM
The CLR needs everything contained in an assembly (CIL, metadata etc) to both launch it and manage it whilst it's running.
nishant ranjanPosted Sep 25, 2012, 5:57 AM
VulpesPosted Sep 24, 2012, 9:26 AM
Microsoft wanted something that was similar to Java and allowed you to program in different languages. To achieve that the various language compilers (C#, VB.NET etc) all had to produce an intermediate byte code which could then be turned into native code by the runtime.
They wanted programming to be simple by enabling the runtime to deal automatically with 'house-keeping' such as memory allocation, garbage collection and security issues so that the programmer could concentrate on the task in hand.
They also wanted to get rid of something called 'Dll Hell' which plagued unmanaged applications at the time by building in support for versioning.
.NET code is normally slower than unmanaged code written in C/C++ and there's an initial delay whilst the CLR is loaded. However, in most types of applications, the difference in speed is unimportant.
nishant ranjanPosted Sep 24, 2012, 9:11 AM
VulpesPosted Sep 24, 2012, 8:57 AM
However, they decided to call it an assembly because there are a number of differences between it and ordinary windows applications. For example:
1. An assembly contains CIL (common intermediate language) rather than native code. The CLR (Common Language Runtime) takes this CIL and compiles it to native code dynamically.
2. An assembly can (though seldom does) consist of one or more files or 'modules' as they are called.
3. An assembly contains metadata as well as code and can also contain versioning information.
nishant ranjanPosted Sep 24, 2012, 8:44 AM
where its use comes.... how m calling those assembly file and for what purposes....
VulpesPosted Sep 24, 2012, 8:39 AM
A class library provides classes which executables or other libraries can use. The .NET framework itself is just a collection of class libraries.
Satyapriya NayakPosted Sep 24, 2012, 7:49 AM
Please refer the below links
http://www.c-sharpcorner.com/UploadFile/thiru_ji/1DotnetAssemblies02212007050300AM/1DotnetAssemblies.aspx
http://www.codeproject.com/Articles/20565/Assembly-Manipulation-and-C-VB-NET-Code-Injection
http://www.codeproject.com/Articles/3262/A-NET-assembly-viewer
http://www.codeproject.com/Articles/8874/Strong-Names-Explained
Thanks