Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8582429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:17:26+00:00 2026-06-11T21:17:26+00:00

I have a Visual Studio 2012 solution containing three projects. A simple dependency graph

  • 0

I have a Visual Studio 2012 solution containing three projects. A simple dependency graph of the structure is:

  • ConsoleUI
    • SubProject
      • Newtonsoft.Json.dll
      • RestSharp.dll
      • …
    • …

The problem I have is when compiling ConsoleUI, RestSharp is not copied to output but Newtonsoft.Json is causing a runtime error in my application.

I have checked that Copy Local is set to true in the project properties of SubProject.

I have done a full Clean and Build to no avail.

Can anyone think of a solution without manually including the required assembly in ConsoleUI?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:17:27+00:00Added an answer on June 11, 2026 at 9:17 pm

    This sounds like a long-existing behavior in MSBuild. Which assemblies actually get copied locally when you build ConsoleUI is calculated based on:

    • Primary references of your project (in this case SubProject)
    • Any compiler-detected references from your primary references to their references (in this case SubProject -> Newtonsoft.Json is being detected, but * -> RestSharp isn’t).

    The two ways to work around this are:

    1. Add an explicit call from SubProject into RestSharp (since any other DLLs are out of your control) that the compiler can’t ignore. This is probably not ideal since it’s throwaway code.
    2. Make RestSharp into a primary reference for ConsoleUI.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET 4.0 solution in Visual Studio 2012 with two projects and
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
I have a Visual Studio 2012 (RC) solution bound to a CodePlex server. However,
I have Visual Studio 2010 solution of 2 projects: c# and c++ c++ project
I have installed Visual Studio 2012 RC. I would like to find any example
I am building an application in C# visual studio 2012 RC. I have to
I have set up Visual Studio 2012 Professional to download debug symbols. It is set up
I have installed the new Visual Studio 2012 Ultimate. I have created a Test
I have a package that is developed in SSIS 2012 using Visual Studio 2010.
I have SQL Server 2012, SSIS, SSDT and Visual Studio 2010. I can create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.