Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

Important: ASP.NET Security Vulnerability  
add comment ( 41 views )   |  permalink   |  related link   |   ( 2.9 / 1613 )
Add DLL to GAC using C# 
Tuesday, January 19, 2010, 12:52 - .NET
Posted by Administrator
Reference the system.EnterpriseServicess assembly to your project.

using System.EnterpriseServices.Internal;

public void Update(DirectoryInfo folder_GAC)
{
  //check if folder containing new dll files exists
  if(folder_GAC.exists){
    //add each dll found in this folder to the Global Assembly Cache
    foreach (FileInfo dll in folder_GAC.GetFiles("*.dll")) 
    {
      //instantiate a new Publich object and install the dll
      Publish objpublish = new Publish();
      objpublish.GacInstall(dll.FullName);
    }    
  }
}


remove an assembly from the GAC can be done by using the GacRemove(string name) method.

more information:
http://msdn.microsoft.com/en-us/library ... blish.aspx

add comment ( 3 views )   |  permalink   |  related link   |   ( 3 / 596 )
Visug report: Brad Abrams 
Tuesday, September 29, 2009, 07:34 - .NET
Posted by Administrator
Yesterday evening I attented an interesting session, with a lot of people, from Brad Abrams (Program Manager at Microsoft and author of the book Framework Design Guidelines ).

Most of the things he told were already known in a technical point of view, but what made it so interesting is the reason why some things are built in the .NET framework.

When to use a property in stead of a method, after all... A property is a method?!

When to use an extention method combined with a namespace and add overload methods to an interface or to manage dependencies?

Why shouldn't I define extension methods on the System.Object? ;)

And my favourite:
Do as little as possible now (but no less) to ensure room for extensibility in the future

How to achive the secret of great productivity?

did I get your attention?

Brad has provided us with the slides which can be downloaded from here

always nice to learn some new things :)
add comment ( 2 views )   |  permalink   |  related link   |   ( 3 / 643 )
new .NET logo 
Tuesday, October 28, 2008, 09:40 - .NET
Posted by Administrator

add comment ( 2 views )   |  permalink   |  related link   |   ( 3 / 744 )
.NET Framework 3.5 SP1 and VS 2008 SP1 
Tuesday, August 12, 2008, 08:24 - .NET
Posted by Administrator

Here you are:

add comment ( 5 views )   |  permalink   |   ( 2.9 / 1074 )

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |