473,387 Members | 1,574 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,387 software developers and data experts.

Class Libraries Output to Same Directory

I have three projects in the same solution that are all class library
projects. The projects are COM interop objects that will be used within my
COM framework. It is important to me to have all three projects building to
the bin directory of my COM framework so that I don't have to use the
/codebase option when registering the objects.

Here is my problem, all three projects reference the same COM typelib, which
will generate an interop.TYPELIB.dll file. Only one of the projects will
successfully build to the target directory and any code in the other two
projects that references the COM typelib fails to build as if the reference
wasn't even there.

Since one project works successfully, this appears to be a Visual Studio
..NET problem. It looks to me like the first project opens the
interop.TYPELIB with no sharing allowed, so the other projects can't
reference it.

Is there any solution to this problem? Can I make VS not hold open (not
sharing) the referenced interop dll?

Thanks
Nov 15 '05 #1
2 2270
Try setting "Copy Local" to False for the interop.TYPELIB.

"Brian Reed" <br****@northropgrumman.com> wrote in message
news:uI**************@TK2MSFTNGP11.phx.gbl...
I have three projects in the same solution that are all class library
projects. The projects are COM interop objects that will be used within my COM framework. It is important to me to have all three projects building to the bin directory of my COM framework so that I don't have to use the
/codebase option when registering the objects.

Here is my problem, all three projects reference the same COM typelib, which will generate an interop.TYPELIB.dll file. Only one of the projects will
successfully build to the target directory and any code in the other two
projects that references the COM typelib fails to build as if the reference wasn't even there.

Since one project works successfully, this appears to be a Visual Studio
.NET problem. It looks to me like the first project opens the
interop.TYPELIB with no sharing allowed, so the other projects can't
reference it.

Is there any solution to this problem? Can I make VS not hold open (not
sharing) the referenced interop dll?

Thanks

Nov 15 '05 #2
Thanks. That did hte trick. I just let one unique reference be copied to
the local area. It seems like a strange error that can be misleading. It
took me awhile to figure out that the proplem was with sharing the same
file.
"Val Savvateev" <1@2.com> wrote in message
news:ea**************@tk2msftngp13.phx.gbl...
Try setting "Copy Local" to False for the interop.TYPELIB.

"Brian Reed" <br****@northropgrumman.com> wrote in message
news:uI**************@TK2MSFTNGP11.phx.gbl...
I have three projects in the same solution that are all class library
projects. The projects are COM interop objects that will be used within my
COM framework. It is important to me to have all three projects building to
the bin directory of my COM framework so that I don't have to use the
/codebase option when registering the objects.

Here is my problem, all three projects reference the same COM typelib,

which
will generate an interop.TYPELIB.dll file. Only one of the projects

will successfully build to the target directory and any code in the other two
projects that references the COM typelib fails to build as if the

reference
wasn't even there.

Since one project works successfully, this appears to be a Visual Studio
.NET problem. It looks to me like the first project opens the
interop.TYPELIB with no sharing allowed, so the other projects can't
reference it.

Is there any solution to this problem? Can I make VS not hold open (not sharing) the referenced interop dll?

Thanks


Nov 15 '05 #3

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

Similar topics

2
by: Julian | last post by:
I would like to have output from my program to be written to cout as well as a file. (actually, i want several other output options but this should explain my problem in the simplest way). I have...
5
by: z. f. | last post by:
Hi, I'm working on a web project and i create classes to do business logic and connect to DB. i also need a windows application to do the same functionality as defined in classes inside the...
4
by: Brian Shannon | last post by:
I am playing around with class libraries trying to understand how they work. I created a class library, library.vb. I placed the library.dll into the bin directory and set my reference. If I...
0
by: Daniel Sélen Secches | last post by:
I found a good class to do a simple FTP. Very good.... I'm posting it with the message, i hope it helps someone ============================================================== Imports...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
8
by: Brett Romero | last post by:
I have this situation: myEXE <needs< DerivedClass <which needs< BaseClass Meaning, myEXE is using a type defined in DerivedClass, which inherits from BaseClass. I include a reference to...
3
by: Fernando Chilvarguer | last post by:
Hello! I created a Class Library project in VS2005. Then, using VS, I was able to add a connection string to the project settings, which automaticaly created an app.config file for me. If I try...
4
by: =?Utf-8?B?TWF0dCBMb3Zl?= | last post by:
If I extend the WebBrowser class like this: public class CustomWebBrowser : System.Windows.Forms.WebBrowser { public string myProperty() { return "myProperty"; } }
1
by: sandhyabhavani | last post by:
This article is used to zip a file or directory using vb.net. The classes and method to zip a file is availale in java.io, java.util, java.util.zip class library.To import these you have to add a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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...

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.