visual-studio - Visual Studio - .Net 5.0 项目中的外部程序集未更新
问题描述
我正在旧版 Visual Studio 解决方案中添加NUnit
项目,该解决方案已经具有和.TestAutoNeatSoftware
NeatSolution
NeatLegacyProject
NeatSlowlyPortingClassLibrary
NeatLegacyProject
并NeatClassLibraryInProgress
使用.Net Framework 4.8,但我的目标是将整个移植到.Net 5.0,所以TestAutoNeatSoftware
使用.Net 5.0。
这三个项目都使用了我们在另一个解决方案中开发的类库,GeneralPurposeLibrary
.
当我第一次GeneralPurposeLibrary
作为一个程序集添加到 时TestAutoNeatSoftware
,一切都很顺利;类、属性和方法很容易使用,并且一切都构建得很顺利。
然后,我在 ; 中添加了GeneralPurposeLibrary
用于模拟的接口TestAutoNeatSoftware
;GeneralPurposeLibrary
正式建成。
当我在 中使用这样的接口时NeatClassLibraryInProgress
,构建运行良好。
但是,当我在 中尝试相同时TestAutoNeatSoftware
,它似乎不知道GeneralPurposeLibrary
已被修改。
我尝试了以下方法:
- 我检查了
GeneralPurposeLibrary
所有三个项目的访问路径:它是相同的(除了其中一个TestAutoNeatSoftware
有一些大写字母,但dir
命令显示它实际上比其他两个更正确)。 - 我在 Windows 资源管理器中查找了 GeneralPurposeLibrary.DLL 文件:它的最后修改日期是我所期望的。
- 我
GeneralPurposeLibrary
在解决方案资源管理器中右键单击以在对象浏览器中打开它:它显示了应有的新类、属性和方法。 - 我尝试将
GeneralPurposeLibrary
' 属性设置为与其他两个项目中的属性一致(它们看起来并不完全相同,但仍然如此),但无济于事。作为参考,与默认值的差异是:- 本地副本:是
- 嵌入互操作类型:否
- 具体版本:无
- 清洗溶液不会影响这种情况。
- 如果我重新启动 Visual Studio,
TestAutoNeatSoftware
则可以识别新的类、属性和方法。如果我删除/添加GeneralPurposeLibrary
.
我能做些什么来让它变得更好?
(除此之外:属性的名称是从 VS 的法语版本翻译回来的,在 Web 搜索的帮助下,但我会感谢有关程序集属性的参考,因为我似乎找不到。)
解决方案
推荐阅读
- forms - 必填字段,自动对焦。单击链接时,错误验证会移动单击目标
- javascript - 在 Angular 6 应用程序中存储本地存储以外的用户信息并在重新加载时保持相同的位置?
- mysql - MySQL:从多个表中选择数据,其中存在多个“多对多”关系表
- c++ - 内联函数中具有内部链接的全局变量
- azure - 防止 Azure 中的 HTTP 主机标头攻击
- ios - 如何在 podfile 中指定 CocoaPods 存储库分支
- python - 两个非常相似的正则表达式,其他找不到匹配
- notepad++ - 如何在记事本++中搜索和替换匹配的命中
- rest - Autodesk Forge,.Net API POST 方法不返回新对象 ID
- java - 使用 Microsoft graph Java Sdk 创建发布请求以将用户添加到组