473,406 Members | 2,467 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,406 software developers and data experts.

Referencing third party DLL's from another project

Hey All,
I have two projects, A and B.

Inside Project A, I have a DataGrid class, that extends a third party libraries datagrid.

So the class looks like:

public class MyDataGrid : ThirdPartyDataGrid.


Now in project B, I reference Project A, and I try and use MyDataGrid, but get a compile time error saying:
Error 53 Unknown build error, 'Cannot resolve dependency to assembly 'Xceed.Wpf.DataGrid, Version=2.0.8127.13040, Culture=neutral, PublicKeyToken=ba83ff368b7563c6' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
Now if Project B references the Xceed (thirdParty) datagrid, then it works.

Is there a way that B can just reference A? I would hate to have all other projects that want to use my datagrid to have to actually have a copy and a reference to the dll!

Thanks for your time!
Dec 11 '08 #1
5 4449
Ramk
61
Right click on the reference you added(in your case, in project A for the 3party dll & in project B for the reference project A), Choose Properties & then set the
Copy Local property to True. Afterwards, whenever you build your project, VS will automatically copies the referred assemblies to the output folder.
Dec 12 '08 #2
Yes, but that still doesn't seem to solve the issue. It seems to force me to have Project B have a reference to Project A and to the third party dll. I was hoping to only need a dependency to project A.
Dec 12 '08 #3
nukefusion
221 Expert 100+
Is it just a straight reference from A to B?

You're not using any of the following methods in your code?

Assembly.ReflectionOnlyLoadFrom(String assemblyFile)
Assembly.ReflectionOnlyLoad(byte[] rawAssembly)
Assembly.ReflectionOnlyLoad(String assemblyName)
Dec 12 '08 #4
No I'm not using any of those. My UI.exe just references another project that outputs a .dll. The .dll uses the other third party .dll, but when the .exe project wants to use my wrapped object from my .dll, it still wants the third party .dll.

Note: When I removed the code from XAML and did it in the code behind, the error message actually changed slightly. It gives me something similar to this:

Error 1 The type 'ClassLibrary.Class1' is defined in an assembly that is not referenced. You must add a reference to assembly 'ClassLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
Dec 15 '08 #5
nukefusion
221 Expert 100+
Sounds strange. I found a reference to the same problem in the Xceed forums, posted about a year ago. As of yet that post doesn't have an answer either, so I don't know if this is caused by the Xceed grid or another issue. Maybe someone else can shed some light on this one?
Dec 16 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jon Davis | last post by:
I have a full-blown application that consists of several (fifteen or so) assembly DLLs, each being a separate VS.NET project that outputs to the main DLL's bin directory. They are all strongly...
4
by: Joe | last post by:
Hello All: I need some help understanding project references. I have two projects that are giving me grief. They are called Business and Messaging. The Business proejct contains classes that...
3
by: John Dann | last post by:
I'd like to talk to a (serial port linked) external instrument from within a .Net project. The makers supply a Win32 compatible DLL (written in C and not an ActiveX DLL I think) that handles the...
5
by: James Radke | last post by:
Hello, I am using some external functions supplied by an ERP vendor in a windows.forms application (vb.net, visual studio.net 2003) The functions are defined as follows: ' Max startup and...
4
by: Oenone | last post by:
Another VB6 feature that I'm missing in VB.NET is with regard to referencing projects vs. referencing DLLs. In VB6 I can reference my support library, Support.dll, and call its functions. If...
10
by: Alan T | last post by:
I found a thirtparty component but have no idea how to integrate into VS 2005 IDE? The files come with project file and solution files.
4
by: m11533 | last post by:
I am developing a large application with Visual Studio .NET 2003 using C#. We recently added a new third party product with a native .NET library. I want to place this third party product's dll in...
5
by: =?Utf-8?B?U3RlZmFuIEJhcmxvdw==?= | last post by:
I am experiencing a lot of speed issues on initial app loads where we are referencing 3rd party 1.1 assemblies from 2.0 code. Those 1.1 assemblies reference things like System.Windows.Forms...
2
by: Marcus | last post by:
Good evening, I'm new to developing large subversion-controlled projects. This one will involve a few third-party libraries like wxWidgets, and perhaps Twisted. Ordinarily you could just install...
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.