Tag Archives: .NET



How to Pass Command Line Arguments using Visual Studio ?

You are writing one application in Visual Studio which accepts some command line parameter to do some operation. You pass command line arguments to the program when it’s been invoked  from the command line. But how did you do it from Visual Studio ?  You want to test your application and do you really want […]

Install a shared Assembly to the GAC as post build event from Visual Studio

The Global Assembly Cache (GAC) is a Cache for globally available Assemblies. Most of the shared assemblies are installed inside GAC to shared across different applications. The Global Assembly Cache tool (Gacutil.exe) allow us to manipulate the contents of the global assembly cache along with install and un-install Assembly. During the development, we generally  take […]

Programmatically Get Assembly Version

In this tip I will discuss how we can get assembly version programmatically  from a caller application.  This can be done easily by taking help of Reflection.  Assembly  Class contains a static method called GetAssemblyFullName() which gets the assembly that contains the code that is currently executing.

Working with DirectoryCatalog in MEF

As I have already discussed some of the Catalogs present in MEF library viz, TypeCatalog, AssemblyCatalog etc, where AssemblyCatalog is actually a collection of TypeCatalog internally, DirectoryCatalog on the other hand is a collection of AssemblyCatalog. In this post I will look into DirectoryCatalog and how to use this class while writing your MEF application. […]

Initialize assemblies using PreApplicationStartMethod for ASP.NET 4.0 Application

Sometimes your ASP.NET application needs to hook up some code before even the Application is started. Assemblies supports a custom attribute called PreApplicationStartMethod which can be applied to any assembly that should be loaded to your ASP.NET application, and the ASP.NET engine will call the method you specify within it before actually running any of […]

Playing with ASP.NET List Controls using jQuery

List Controls are one of the most used form controls. And we all know that manipulating these controls from JavaScript always have been a tough task. In this post I’ll be discussing about accessing List controls and manipulating it with the help of jQuery. Hope you all like it and also will able to apply […]

Using Mutex to avoid deadlocks

Mutex is not new to the .NET framework. The Win32 api supports an object called Mutex and .NET framework class Mutex is actually a wrapper class for the same Win32 kernel mutex object. Mutex objects are generally used to synchronize Threads across process. Mutexes are namable and hence you can signal whether the Mutex is […]

Writing inline Code in WPF

Generally when you create a WPF window, you will get two files automatically created for you. One which represents the XAML, which is stored in .XAML extension file, and another is a class which is stored in a Code-Behind file with .cs extension. But in certain scenarios, it is actually required to write your Code […]