当特定版本为 False 时,版本特定的程序集引用
我最近开始遇到问题,我的项目需要引用程序集的特定版本,即使这些引用在我的 Visual Studio 项目中被标记为“特定版本 = False”。例如,我将 MyAssembly.dll 版本 1.0.0.0 替换为 MyAssembly 1.0.1.0,引用 MyAssembly.dll 的应用程序将收到错误消息,指出无法找到版本 1.0.0.0。特定版本属性似乎不起作用。这是一个巨大的痛苦,因为即使新版本中没有重大更改,我也必须重建和重新部署引用该程序集的每个应用程序。我知道过去当这是错误的时,它会使用任何版本,如果发现多个版本,它会使用最新版本。有谁知道问题是什么?
编辑:此问题已开放一段时间,但没有任何回复。问题不清楚吗?我想知道的是,有没有办法将我的 .NET 应用程序依赖的程序集更新到新版本,而无需重建我的 .NET 应用程序。
I've recently started having problems with my projects wanting specific versions of their referenced assemblies even though the references are marked as Specific Version = False in my Visual Studio project. For example, I'll replace MyAssembly.dll version 1.0.0.0 with MyAssembly 1.0.1.0 and the applications referencing MyAssembly.dll will get an error saying version 1.0.0.0 cannot be found. The specific version property doesn't seem to be working. This is a huge pain because I have to rebuild and redeploy every application that references the assembly even if there are no breaking changes in the new version. I know in the past when this has been false it would use any version and if more than one was found it would use the latest version. Does anyone know what the problem is?
Edit: This has been open with no responses for a while. Is the question unclear? What I want to know is, is there a way to update assemblies my .NET application depends on to a new version without rebuilding my .NET application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您好,我刚刚在 Sharepoint 项目中遇到了同样的问题,我通过编辑 app.config 文件并添加以下 ind 配置标记来修复它。这成功了。
特定版本是编译时问题。我不知道。
Hi I just had the same problem with a Sharepoint project and I fixed it by editing the app.config file and add the following ind the configuration tag. That did the trick..
The Specific Version is a compile time issue.. I didn't know that.