473,473 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

refer the version

hi,
i am using two versions of a particular dll cust.ll.
how do i make a class file to refer the two versions of cust.dll.

eg:
version one :
using System;
using System.Reflection;

[assembly: AssemblyKeyFile("test.txt")]
[assembly: AssemblyVersion("2.0.0.0")]

public class cust
{
public void NameTwo()
{

Console.WriteLine("testing assembly from version two");
}
}

sn -k test.txt
csc /t:library cust.dll
gacutil -i cust.dll

==================================
version two :
using System;
using System.Reflection;

[assembly: AssemblyKeyFile("test.txt")]
[assembly: AssemblyVersion("3.0.0.0")]

public class cust
{
public void NameThree()
{

Console.WriteLine("testing assembly from version three");
}
}

sn -k test.txt
csc /t:library cust.dll
gacutil -i cust.dll

===================================

client file

using System;
public class Client
{
public static void Main()
{
cust obj = new cust();
obj.NameTwo();
obj.NameThree();
}
}

csc /r:cust.dll client.cs

when i execute this i am getting the following error:
'cust' does not contain a definition for NameTwo

Jan 30 '07 #1
0 784

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
I've been trying to setup Dean Allen's excellent "Refer" script. (http://www.textism.com/tools/refer/) The instructions say to add this code to the bottom of whatever web pages you want the...
0
by: jacksuyu | last post by:
I have two xsd files, in one xsd file, I defined a "key", I'd like to use "keyref" to refer to that "key" from another xsd file. But I always get attribute is empty error. my.xsd is my first xsd...
2
by: RBohannon | last post by:
I found this in the Help file: ' Refer to a control by its index in the controls ' collection. Me(0) Can I view a list of controls on a form and see their index numbers? Or how do I find the...
6
by: Boomessh | last post by:
Hi all, I have installed .NET framework version 2.0 and i am trying to get the method Transmitfile under system.web.httpresponse. How should i make my asp use the 2.0 framework dll's. 1. I...
2
by: Gidi | last post by:
Hello, I've a strange problem with substring function. I'm geting a string from my SQL DataBase and i want to split it to two substings. here is what i do: if(temp.Length>80 &&...
6
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Why doesn't the global variable "divId" always refer to the element with id="divId"?...
0
by: kalaivanan | last post by:
hi, i am using two versions of a particular dll cust.ll. how do i make a class file to refer the two versions of cust.dll. eg: version one : using System; using System.Reflection;
11
by: Web Search Store | last post by:
Hello, I set up a web page with 2 user controls. In classic asp, the first one did all the declarations, and the second one used the values, and could reset it. In ASP.Net so far I can't...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.