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

4 posts, 0 answers
  1. Alfons
    Alfons avatar
    14 posts
    Member since:
    Mar 2012

    Posted 01 May 2013 Link to this post

    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?

  2. Rossen Hristov
    Rossen Hristov avatar
    2477 posts

    Posted 02 May 2013 Link to this post


    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.

    Rossen Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Niraj
    Niraj avatar
    4 posts
    Member since:
    Oct 2015

    Posted 27 Oct 2015 in reply to Alfons Link to this post

    Were you able to solve this problem. Because I am facing the exact issue.
  4. Niraj
    Niraj avatar
    4 posts
    Member since:
    Oct 2015

    Posted 27 Oct 2015 in reply to Rossen Hristov Link to this post

    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.

Back to Top