This is a migrated thread and some comments may be shown as answers.

Why are referenced dll's (of a second project) not copied to the output folder?

3 Answers 1276 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alfons
Top achievements
Rank 2
Alfons asked on 01 May 2013, 10:24 AM
Hi,
I have created a "RadControls WPF application" project ("A") and added a class-library project ("B") to it. The main window of project A contains only a userControl from project B. Project A has a reference to project B.
This project B contains some Telerik components and has references to the required assemblies.

Building the solution goes well, but when I run it, I get a file-not-found exception for the referenced Telerik assemblies. Which is correct, coz the telerik dll's aren't located in the output folder of project A, only in the output folder of project B!

I have set the "copy local" setting of the effected references explicitly to True, but with no success. I know 2 options to solve this, but I ain't sure if this is the correct way to solve my problem, since they both look a bit ugly to me:
1. Include all, in other projects used, references to the start up project as well.
2. Set the output folders of all projects to the same folder.

Or is there a better solution? What is the best way to solve this?

Regards,

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 02 May 2013, 08:15 AM
Hello,

We are not sure whether you are using project or assembly references.

Anyway, this issue is not particularly related to Telerik controls in any way, i.e. you would have exactly the same problem no matter what external third-party assemblies you are using -- our assemblies are not special in any way, i.e. they are just a bunch of normal DLL's -- nothing special.

The questions that you have are really Visual Studio and .NET material. Maybe, this MSDN topic can get you on the right track to resolve your assembly architecture. You can also get advice on StackOverflow for .NET-related issues like this one.

Let us know if you have any questions that are directly related to Telerik products.

Regards,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Niraj
Top achievements
Rank 1
answered on 27 Oct 2015, 08:10 PM
Were you able to solve this problem. Because I am facing the exact issue.
0
Niraj
Top achievements
Rank 1
answered on 27 Oct 2015, 08:23 PM

I am having the same issue. Link to my stackoverflow question is here.

The issue can be easily reproduced as shown in the SO question.

Tags
General Discussions
Asked by
Alfons
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Niraj
Top achievements
Rank 1
Share this question
or