project-reference

Visual Studio 2005, how to get where project are used in a solution?

I have a solution with other 70 projects into it. My question is : How can I know where the project is used? I do not want to open all those 70 projects to verify the References one by one. How can I see which project use one project in particular? Edit I do not want to do 1 by 1 search in XML or in the Reference in VS. I would like a q...

WinForm application and MS Office references

In our WinForms project, we need to give a facility to import data from Excel sheets. There are ways to refer MS Office files (here Office 2003) in your project references. Each time there is slight difference in build environment the project reference breaks and shows an Excel missing error. My question is How to correctly refer O...

How could an object get a reference to a class that is in a different (and unreferenced) assembly?

I have two projects: A/B. Project A is the project that contains all of the winforms which are bound to objbects in B (logic items) A has an object of type A.Form B has objects of type B.Serializer B.Logic Now, A has a reference to B (but B does not have a reference to A) and A.Form contains a member variable of type B.Logic. At some...

Managing .NET assembly dependencies by dll reference rather than by project reference in VS.

Dear ladies and sirs. 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 reference each other by means of project references, but rather by direct...

Unit Tests in VS2008 force rebuild of all dependencies

Why, when I go through my unit tests in VS2008 - either using run or debug - does VS insist on rebuilding all the dependencies of the test project i.e. the projects that I'm testing in the unit tests? Sometimes they haven't changed - I've just amended some of the unit tests. Or perhaps I've modified one of the assemblies - yet it insist...

Do I need to register the COM dll to be able to reference it on the .NET project?

I'm trying to reference a COM dll in visual studio by using the Browse tab and selecting the DLL. I noticed that if the DLL is registered on the system with regsvr32 I can reference it, but if it's not registered I receive an error selecting the dll file "A reference to 'file.DLL' could not be added. Please make sure that the file is acc...

How can you include/reference a file in a project without copying it to the project directory?

I am writing an application in Visual Studio 2008. I have a help file that I want to be included in the output of my project. I want the most recent version of my help file to stay in a folder that is not my visual studio project directory. For example C:/Helpfiles. I want to include this file in my Visual studio project so that when I ...

Determining outputs of a ProjectReference in MSBuild without triggering redundant rebuilds

As part of a solution containing many projects, I have a project that references (via a <ProjectReference> three other projects in the solution, plus some others). In the AfterBuild, I need to copy the outputs of 3 specific dependent projects to another location. Via various SO answers, etc. the way I settled on to accomplish that was: ...

TFSBuild/MSBuild and Project Reference vs File Reference

We Have a large VS solution using project references which is build by TFS Build like so: Solution - Project 1 - Project 2 - Project ... - Project N Because the solution is too large we have several smaller solutions which we use day to day: SubSolution - Project 1 - Project 19 The problem is that developers working on SubSolution ...

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 library, and the service has a project reference to that library. Strangely, this results in a...

Visual Studio 2008 - Project without DLL

Hi, I need to add a reference to a project to do some reflection. But it seems that this project doesn't have a .DLL file (even after building it). Can this happen? ...

Cannot add library in VC++ 2008: My System is Different

Hopefully someone can tell me what's going on here. I'm trying to link to gdiplus.lib and I tried to go to "Properties - Linker - Input - Additional Dependencies" to add the library but I do NOT have that section. I'm using Visual C++ 2008. Here's what I see: Common Properties Framework and References Configuration Properties Gen...

vs2008 Including Managed C++ class from one dll in another Managed C++ class?

I have a project called ManagedWrapper that is Managed C++ and builds as a DLL. I have a second project called MyManagedTest that is Managed C++ and builds as a DLL. When I try to include a header from ManagedWrapper in MyManagedTest, I get linker LNK2020 errors. I then add a reference to ManagedWrapper in "Frameworks and References" ...

Difficulty with Adding a Reference in Visual Studio (Windows Azure StorageClient)

I've been following alone with this tutorial. Everything is going great, until I get to this part: Set a reference to the StorageClient library. You can either add the sample project to the solution and add a project reference or you can add a reference to the compiled dll. I am going to add the StorageClient project to...

Difference between project and dll dependencies in .Net in the final compiled assembly

Lets say I have two projects A and B. A depends on B. I can specify this in two ways: Include A and B in the same solution and specify B as a project dependency for A. This shows up in A's msbuild project as a "ProjectReference" node. Include a reference to the B's compiled dll as dependency for A. This shows up in A's msbuild project ...

How to solve this error: Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version 2.0.50727.0'

This question to which I already found the answer is posted here in case of someone else encounters it. I decided to post the Q&A here so that SO has something about this error, since I don't know if it's been here before. This occured after an update of the .NET Framework. Before the update, everything compiled just fine! After the u...

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 folder. For example: <Reference Include="TowerCo.Utilities, Version=1.0.0.0, Culture=neutr...