473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 894

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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.