1

I have a .NET solution consisting of several projects - most of these are just simple c# libraries. One of them is an MVC web application.

All the references of every project is missing references. Here is an example:

I have de-selected all projects for build except this one (shown above) simple c# library project which has no dependencies on any other in the solution.

I've checked things like the .proj file in Notepad but can't see anything unusal.

If I remove one of the references such as System.XML and then re-add it, it gets re-added but still with the missing warning icon! So the Dll's are in the .NET frameowrk directory as you'd expect.

I'm really quite stumped with this.

It's .NET framework 4.5, Windows 7, x64.

Thanks in advance for any thoughts / help!

Kind Regards

Richard

croxy
  • 4,082
  • 9
  • 28
  • 46
user3027683
  • 21
  • 1
  • 3
  • Does this happen in new projects if you add one of those dependencies? – Zero May 19 '16 at 13:08
  • You can refer this [link](http://stackoverflow.com/questions/37275619/how-to-add-references-and-nugets-in-visual-studio-project-template/37275813?noredirect=1#comment62079434_37275813) Hope it helps! – Ruban J May 19 '16 at 13:08

3 Answers3

0

Several points to check to know why they seem to be missing:

  • Paths
  • Assemblies: Are they built for the same .NET version of your project (Portable, not portable, windows phone, etc...)
romain-aga
  • 1,441
  • 9
  • 14
0

For the query you asked, you can refer the below link

How to add references and nugets in visual studio project template?

For the references, according to the image, it may refer to the GAC and not the local bin folder of the solution.

Remember, the best way is always to maintain the references in the Bin/Reference folder and then refer from it. Add them to the solution so that you may not loose them when you compress and move them to another system.

The following link will help you how to add the references

https://msdn.microsoft.com/en-us/library/7314433t(v=vs.90).aspx

Community
  • 1
  • 1
Ruban J
  • 622
  • 1
  • 7
  • 31
0

Following below steps resolved the issue.

  1. Ensure the .dll exists in the properties path
  2. Still,if issue exist,then click on properties that fix the problem