DLL的特定版本 [英] Specific Version of DLL

查看:66
本文介绍了DLL的特定版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi

推荐答案

>>我最终通过更改参考特定版本"的属性来解决了我的问题真实,但我会认为行为应该是它给了您2.7或2.7.x.x而不是2.5?

>>I eventually fixed my issue by changing the property on the reference "specific version" to true but I would have thought that the behavior should be it gives you 2.7 or 2.7.x.x not  2.5?

很高兴听到您自己解决了这个问题.根据我的理解,根据您的情况,因为他是最新的 Azure SDK 可能出现 使用旧的 程序集dll.正如您所说的通过 VSTS进行构建时,版本号是2.5.

Glad to hear you have worked it out by yourself. Based on your scenario, per my understanding, because the latest Azure SDK may appear that use the old assembly dll. As you said build via VSTS the version number is 2.5.

>>是确保正确的.DLL用于始终使用特定版本"true"的唯一方法.

>>Is the only way to guarantee the correct .DLL is used to always use Specific version "true"

修改配置文件 是一个不错的 解决方案.

Visual Studio根据是否执行特定版本"的决定来进行选择.检查.csproj文件中找到的两条信息:

Visual Studio bases its decision whether to perform the "Specific Version" check on two pieces of information found in the .csproj file:

  • <SpecificVersion>元素的存在与否及其值(如果存在)
  • 程序集引用中是否存在版本信息
  • The presence or absence of the <SpecificVersion> element, and its value (if it is present)
  • The presence or absence of version information in the assembly reference

这是带有版本信息的典型程序集引用的外观

This is how a typical assembly reference with version information looks like

<Reference Include="Foo, Version=1.2.3.4, Culture=neutral,
                         processorArchitecture=MSIL">
  <SpecificVersion>True</SpecificVersion>
  <HintPath>..\..\Bar\Foo.dll</HintPath>
</Reference>

希望有帮助!

最诚挚的问候,

克里斯汀


这篇关于DLL的特定版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆