How to make a link to a DLL another version of the second DLL?

When a given DLL refers to a specific version of the 2nd DLL, it works. But if version 2 is newer than the reference version, my library project that uses both libraries gives a warning:

Warning 1 Found conflicts between different versions of the same dependent assembly.

And FxCop states:

Warning 15 CA0060: The indirect link "NationalInstruments.Common, Version = 9.0.40.362, Culture = neutral, PublicKeyToken = dc6ad606294fc298" could not be found. This assembly is not required for analysis, but analysis results may not be complete. This assembly was referenced: SimpleReadWrite

Until these warnings are resolved, I cannot reference my library in another project. I'm trying to use

  • NationalInstruments.NI4882.dll

In my project, SimpleReadWrite, but NationalInstruments.NI4882 is referenced

  • NationalInstruments.Common.dll v9.0.40.362

and I could only find a newer version (9.1.40.159). How to solve this problem?

+4
source share
1 answer

Here

http://digital.ni.com/public.nsf/allkb/46DE00265283A71586256FC000797682

- this is a description of how to restore your installation, which should reinstall the two DLLs, hopefully with the versions that belong together.

If you really want to try to combine these DLLs together (which most likely will not work), read this earlier SO entry, it will explain the necessary steps:

Updating a reference dll in a C # project without recompiling the project

+3
source

Source: https://habr.com/ru/post/1387409/


All Articles