Questions tagged [project-reference]
161 questions
367
votes
30 answers
Why do I get a warning icon when I add a reference to an MEF plugin project?
I wish to test the core class of a plugin by directly referencing the plugin project and instantiating the plugin class. When I create a test Console App project and add a project reference to the plugin project, I get a warning icon (yellow…

ProfK
- 49,207
- 121
- 399
- 775
35
votes
1 answer
Git and Visual Studio project references
Alrighty then, the short version of my question would be:
What is the best way to handle project references in Git when you have projects that are shared across multiple solutions and how should my Git repos be organized?
The long version is:
We are…

Daniel P.
- 373
- 1
- 3
- 5
29
votes
10 answers
Weird: C# Type or Namespace name could not be found - Builds successfully
I have a weird error showing up in my project when it is open in the VS2012 IDE. Everywhere where I make use of another referenced project it suddenly says "Type or Namespace name could not be found". And by "says", I mean it has the text underlined…

hofnarwillie
- 3,563
- 10
- 49
- 73
24
votes
1 answer
Project Build Order in Visual Studio 2010?
We have a Visual Studio 2010 solution that has over 120 projects that reference each other in some way. All inter-project references are project references and not file references which helps Visual Studio determine the project build order…

Kash
- 8,799
- 4
- 29
- 48
18
votes
1 answer
dotnet pack project references
I quite like separating functionality across a few assemblies, for example a facade to a data provider, contracts for the data provider and the data provider implementation itself... to my mind, it makes it easy to unit test the individual…

Jay
- 9,561
- 7
- 51
- 72
18
votes
4 answers
Project Reference Problem, Visual Studio 2010
I have a solution that has one class library project, and the others are WPF applications. I have added class library's reference the but, but both of them cannot use its classes.
So, what is the problem?
NOTE: sorry for tags, it's safari's…

Kaan
- 902
- 2
- 16
- 38
17
votes
2 answers
Why is the build failing in Visual Studio because it cannot resolve namespaces from referenced assemblies?
I have 3 class library projects. Lets call them A, B & C. I have added project reference of A & B into the project C.
A & B are building without any error or warning.
Code(Class file) from the project C uses public classes from A & B. When I add…

Learner
- 4,661
- 9
- 56
- 102
16
votes
2 answers
VS2010: Warning on add project reference to Silverlight project from .NET project
In VS2010, Silverlight 4, .NET 4, I've got a WCF service and a Silverlight app, and Silverlight is accessing the class not with Add Service Reference but by sharing the contract. Naturally, this means I have the contract in a Silverlight class…

nlawalker
- 6,364
- 6
- 29
- 46
16
votes
1 answer
TFS dll and references issues
We use Team Foundation Server for our main project. Every time we add a new employee either onsite or offsite we always have to set up the references manually.
Is it possible for TFS to copy/save/pass the dll's to the new user without having to…

James Wilson
- 5,074
- 16
- 63
- 122
12
votes
2 answers
Visual Studio clean solution doesn't delete all dlls / project reference getting moved
I have a VS 2008 C# web app with a bunch of project references to custom dlls. These are all at a relative path from the web project. Recently I've noticed that Clean Solution removes some, but not all, of the dlls from the web app's bin\debug…

John Price
- 191
- 1
- 1
- 7
10
votes
4 answers
Reference in two projects
I've two projects say P1 and P2.
P1 has a reference of P2.
so I can access P2's methods from P1. But what if I want to access P1's methods from P2 then how can I access them?
I know I can't add P1's reference in P2?
If it is possible? If yes,…

Naila Akbar
- 3,033
- 4
- 34
- 76
10
votes
1 answer
How are references located in .NET?
What process does .NET use to locate a referenced assembly at runtime and is it different than the process used to locate a referenced assembly during compilation? I am specifically interested in the locations that are searched and their search…

Timothy Schoonover
- 3,195
- 4
- 29
- 44
10
votes
1 answer
What are consequences of adding references to C++ project in Visual Studio?
I have been using Visual Studio for quite some time now, developing mainly for C++. I was often in need to create solutions, that contained multiple modules (projects) - for example utility library, that was consisted of couple .dll files.
When…

Mateusz Grzejek
- 11,698
- 3
- 32
- 49
10
votes
3 answers
XamlParseException: Could not load file or assembly 'ResourceLibrary, ...' or one of its dependencies. The system cannot find the file specified
System.Windows.Markup.XamlParseExceptionoccurred
A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'Set property 'System.Windows.ResourceDictionary.Source' threw…

Tar
- 8,529
- 9
- 56
- 127
9
votes
3 answers
Managing .NET assembly dependencies by dll reference rather than by project reference in VS
We have a .NET project consisting of multiple subprojects (around 20). There are several solutions, each containing only those subprojects which are relevant to the particular solution.
To allow for arbitrary solutions, our subprojects never…

mark
- 59,016
- 79
- 296
- 580