I’m porting a C++ .NET solution to MSVS 2012. I have a particular problem with an assembly built localy. In the “Common Properties” section, in the reference list, the assembly was added (“Add New Reference” by browsing). But often (not always), the link seems to be broken (with a vertical red bar on the small icon at left beside the assembly name) and the project won’t compile.
I remove the reference then re-add it (the same one!) and it build. I would appreciate any hint about how to fix this problem because we have a lot of projects in the solution.
You have encountered this problem?
Feel free to ask for more info…
Thanks.
Are you adding an assembly which is built by that project or a different one?
If so then the problem is that it might not be there or might be occupied (held open exclusively by another process like VS2010).
If it is in the same project dont add it by browsing add it from the projects tab.
If not then try to copy the assembly to a different location and then point to it.
In general pointing to different assemblies which are in another project is a very bad idea.