Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclamation mark problem on dll?

I've added a DLL to my project, written with visual studio 2005.
After I did so, an exclamation mark appears nearby the added DLL.

I want to not having this exclamation mark because I'm assume its reflect about a problem.

A friend of me added this DLL to his project on this computer and everything worked well, so I assume I didn't added it well nor there is a problem in my visual studio/computer.

Any ideas how to handle it?

like image 757
Inbali Avatar asked Aug 11 '11 12:08

Inbali


People also ask

What does exclamation mark mean C#?

Null Forgiving Operator in C# - ! Fortunately for us, there is a null forgiving operator (represented by an exclamation point) that we can use to say that we want to ignore one of these incorrect warnings.


2 Answers

I had the same problem when Target framework of destination project and the version of references was different. After I've changed it Project properties, it worked.

like image 111
Piotr Czyż Avatar answered Sep 28 '22 02:09

Piotr Czyż


This usually means that VS can't find the assembly. Make sure it's in a location that is accessible to you, and compare this with your friend's. E.g., is it on a co-worker's machine that may be turned off at certain times? Is it on a network drive?

I'd suggest making a local copy of the file and seeing if the problem is solved.

Question is a possible duplicate of this one.

like image 39
Alex Avatar answered Sep 28 '22 03:09

Alex