[英]How can i install Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll in GAC
I've made a project with c# in which I use "Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll" as a reference assembly. 我已经使用c#创建了一个项目,其中使用“ Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll”作为参考程序集。 When I install my program on another computer it gives me an error message:
当我在另一台计算机上安装程序时,它会显示一条错误消息:
unable to run the application requires that assembly microsoft.data.schema.sql.unittesting version 12.0.0.0 in the global assembly cache
无法运行该应用程序要求程序集microsoft.data.schema.sql.unittesting版本12.0.0.0在全局程序集缓存中
How can I install this .dll
in GAC using code. 如何使用代码在GAC中安装此
.dll
。
This assembly is used for unit testing databases. 该程序集用于单元测试数据库。 It's shouldn't be needed by your production code.
生产代码中不需要它。
Remove it from your project references and try if the solution still builds and, if so, the program still works on both your machine as well as on another machine. 从项目引用中将其删除,然后尝试解决方案是否仍在生成,如果可以,则该程序仍可在您的计算机和另一台计算机上运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.