Visual Studio References and versioning - how does it work?

前端 未结 4 2026
南旧
南旧 2021-02-04 09:04

We have several common libs. Ideally we want them all to use the latest version of a dll even if they have been compiled against an older different version (assume the latest ve

4条回答
  •  天涯浪人
    2021-02-04 09:36

    By default, for versioned DLLs I believe VS will force an exact match. If you look in the properties of the reference, however, you'll find a property called "Specific Version". Set that to "false" and it will match later versions.

    I don't have the full version of VS with me to find an appropriate MSDN link, unfortunately.

    In addition, you can use the assemblyBinding element in app.config.

提交回复
热议问题