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?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With