.comment-link {margin-left:.6em;}

Tuesday, April 25, 2006

 

Referencing 2 versions of the same DLL at the same time


I need this feature in VB
,Pleeeeeeeaaaaaaaaassssssseeeeeeeeeeeeeeeeeeeeeeeeeeee
Only C# has this feature nowwwwwwwww :(

You can do this in C# :
Csc /r:ver1=assembly1.dll /r:ver2=c:\assembly1.dll myapp.cs

Here is a sample of myapp.cs file
extern alias ver1;
extern alias ver2;

using System;

class MyApp
{
static void Main(string[] args)
{
Console.WriteLine(ver1::MyLibrary.Class1.Test());

Console.WriteLine(ver2::MyLibrary.Class1.Test());
}
}


Comments: Post a Comment

Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?