473,769 Members | 3,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Proj layout: where to define an interface

I have an asm that implements an interface. Since the asm will be loaded
dynamically, where should the interface be defined so that the client and
implementation can both use it? It seems like over-kill to define a shared
asm that just contains the interface definition. If the inteface is defined
in a shared project file, can there be a versioning issue?
Nov 17 '05 #1
1 1312
Take into account that an interface is a type, and a type is not only a name
(or a full name with namespace). The type identity includes also its
assembly. So, the interface must reside in a shared assembly, not in a
shared project file. The shared assembly can be the one with the
implementation as long as you don´t change the full name of the assembly,
and that includes the assembly version (AssemblyVersio n attribute, set fixed
to, say, 1.0.0.0). You can change the AssemblyFileVer sion attribute to
distinguish your compilations, though, since it is a different concept of
version. Otherwise, the shared assembly should contain only the definition.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"ChrisA" <Ch****@discuss ions.microsoft. com> escribió en el mensaje
news:A4******** *************** ***********@mic rosoft.com...
I have an asm that implements an interface. Since the asm will be loaded
dynamically, where should the interface be defined so that the client and
implementation can both use it? It seems like over-kill to define a
shared
asm that just contains the interface definition. If the inteface is
defined
in a shared project file, can there be a versioning issue?

Nov 17 '05 #2

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

Similar topics

1
1485
by: thechaosengine | last post by:
Hi all, Can anyone tell me if it is advisable (or even possible) to define a namespace across 2 or more assemblies? For example, consider the namespace SampleApplication.Data.Providers Would it be possible to have assembly A define a class as part of that namespace as well as Assembly B also declaring a class to be within it as well?
8
1923
by: G Patel | last post by:
Can people please comment on the layout/style of my problem? The major issue I had was the layout. I ended up having to put a relatively large switch statement, inside an if statement, which is inside a while loop. If someone can tell me how I can rearrange these elements a little to make it cleaner, I would appreciate that. I've tested it on the command line, and it works *well*, but the source code layout is bugging me. I'd also...
4
1602
by: Maneesh | last post by:
Maneesh Jun 2, 6:27 pm show options Newsgroups: comp.lang.java.programmer From: "Maneesh" <mmano...@gmail.com> - Find messages by this author Date: 2 Jun 2005 05:57:46 -0700 Local: Thurs,Jun 2 2005 6:27 pm Subject: How to define common interface between C and Java modules. Reply | Reply to Author | Forward | Print | Individual Message | Show original | Remove | Report Abuse
9
2307
by: Marc Miller | last post by:
Hi all, I have 2 dev. machines, the 1st is Win 2000 with .NET 7.0 and the 2nd is XP Pro with .NET 2003. My Web Server is Win 2000 Server with IIS 5.0. I can create a new project on my test server from the 1st machine, but I receive an 'HTTP/1.1 500 Internal Server error" from my Web Server. My userid/password are the same on all 3 machines.
4
2350
by: NWx | last post by:
Hi, I develop an ASP.NET app which should be used from Internet, so I don't have control over what browsers will be used. I don't want to target every possible users, so I don't really mind is some user with a very ancient browser (Netscape 3 or 4, or IE 3) won't be able to view the site properly. However, I want that modern browsers (IE 5+, Netscape 6, Mozilla, Opera, and possible other browsers with new versions) to be able to...
23
1212
by: Amka | last post by:
Hi I have a project which I converted from Vb to Vb.NEt But the system is running extremely slow. I have Intel PIII Processor , 256 MB RAM. Plz let me know if tehre is anything I can do to enhance the performance of my system. I know from MSDN that vs.net can run on p-II even, then why is the system so slow?
0
899
by: raulavi | last post by:
I really need a detailed Answer. Thanks!!! How to have global vars if I have a solution with 2 projects...(i need to set the var in one proj and get the var from the second one. I dont want to use Byref) 1. where should I define my class. 2. how do I set my var (cls_name.globalclass.gvalue = "sss") 3. how do I get my var (mylocVar = cls_name.globalclass.gvalue)
3
1545
by: Samuel Shulman | last post by:
I am looking for good guidance for positioning controls on the form.document, it is absolute nightmare and I don't know where to begin Thank you, Samuel Shulman
10
3653
by: Ole Nielsby | last post by:
James Kanze <james.kanze@gmail.comwrote: COM does rely on vtable layout. COM interfaces are declared as pure virtual classes, all methods using stdcall convention, and this works because most (if not all) C++ compilers for the MSW use a very similar vtable layout. In COM, this is handled by proxies provided by system dlls,
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10206
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7403
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5293
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2811
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.