![]() ![]() This is because now, both the EXE are running in their own memory space. Without closing this window, again if you double click on the M圜onsoleApp EXE, again it will run and will display the same output. Now, this program is running out of its own memory space. If you double click on the M圜onsoleApp EXE then you will get the following output. The EXE is run in its own address space or in its own memory space. Now, the question that should come to your mind is what is the difference between the DLL and the EXE? What is the difference between the DLL and the EXE in. Now, build the solution and you should get the respected assemblies as expected in their own bin => Debug folder. One is a console application and the other one is a class library project as shown below. ![]() With this, now our solution contains two projects. Once you created the class library project, it will by default create a class file with the name Class1. In order to create a DLL, let us add a class library project to the same solution with the name as M圜lassLibrary. We already created one console application and we already see that it creates an EXE. In.NET framework, both EXE, and DLL are called assemblies. NET Framework when we compile a Console Application or a Windows Application, it generates EXE, whereas when we compile a Class Library Project or ASP.NET web application, then it generates DLL. NET Framework, there are two types of assemblies. For better understanding please have a look at the following diagram. So, an assembly is nothing but a single unit of deployment or it is a precompiled chunk of code that can be executed by CLR. M圜onsoleApp.exe and put it anywhere within your computer and from there you can run it. You can find this file under the bin => Debug folder. App, Properties folder which contains AssemblyInfo.cs class file, etc.) as shown in the below image.īut when you build the application, then it will put the whole thing into a single EXE as shown in the below image. Program.cs class file, Configuration file i.e. Now, if you right-click on your project and click on Open Folder in File Explorer, then you will find lots of things (Source code i.e. using System Ĭonsole.WriteLine("This is From Console App") Once you created the console application then please modify the Program class as shown below. In order to understand this, let us create a simple console application with the name M圜onsoleApp. Let us understand the above definition with an example. NET Code that can be run by CLR (Common Language Runtime). In simple words, we can say that Assembly is nothing but a precompiled. NET Framework applications they form the fundamental unit of deployment. NET Framework?Īccording to MSDN, Assemblies are the building block of.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |