hi all
I have created two assemblies different in version number. Just to test them i have included an output statement to know which one called based a configuration file. I have included them in the GAC using gacuitl tool. I opened the configuration tool and added the application under the tree view node "Applications". In the configured assemblies option under my added application i created the assemblies configuration.
After this i found the myapp.exe.confi file along with the myapp.exe in the folder bin/debug. Unitl this time things were fine but when i run the application i get the text out put of the first dll not the new one and the configuration file would be deleted at run time from the folder.
What will be the cause ?
The two assemblies were
greeting / version 1.0.0.0
using
System;
namespace
Greeting
{
public class Hello
{
public static void SayHello()
{
Console.WriteLine("Version 2 of the greeting DLL.");
}
}
}
greeting / version 2.0.0.0
using
System;
namespace
Greeting
{
public class Hello
{
public static void SayHello()
{
Console.WriteLine("Hello, world. Version 1.");
}
}
}
// Testing program
using
System;
using
Greeting;
namespace
GreetingTest
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Hello.SayHello();
Console.WriteLine("Press Enter to exit.");
Console.ReadLine();
}
}
}
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).