Updating Versioned .NET Assembly References
Posted
by
ryrich
on Stack Overflow
See other posts from Stack Overflow
or by ryrich
Published on 2013-11-06T20:51:02Z
Indexed on
2013/11/06
21:54 UTC
Read the original article
Hit count: 137
I have a C++/CLI project that needs to reference a .NET assembly.
I've done so by going into the project properties and clicking "Add New Reference", and browsing to the assembly location (it's not part of the solution, so I cannot create a project-to-project reference, and the .NET assembly is not in the GAC so it isn't in the .NET tab when viewing the references to add)
When the .NET assembly is updated (that is, since it is versioned, it will increment its version number daily), the C++/CLI project fails to compile because it is still referencing the older version.
The workaround I've been doing is deleting the .NET reference and adding it back in, but this is not feasible. How do I have it recognize the newer assembly??
Note: The older assembly is replaced with the newer one, so it is in the same location, but doesn't know that it should use the newer version.
© Stack Overflow or respective owner