在运行时找不到引用的库 [英] Referenced Library not found at runtime

查看:68
本文介绍了在运行时找不到引用的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VS解决方案,其中有两个项目(使用c#),一个主要项目在Revit中作为dll运行,另一个是主要项目引用的类库(称为子dll....重构一些代码以将其分解为易于重用的库).当我运行主项目时,出现未找到文件的异常,该异常已通过将子dll放置在部署主dll的同一位置以便revit找到它而得到修复.

I have a VS solution with two projects (using c#), the main project which runs as a dll in Revit, and a class library which the main project references (call it the child dll . . . I'm trying to refactor some code to break it out into an easily reusable library). When I run the main project I get a file not found exception that is fixed by putting the child dll into the same place that I deploy the main dll in order for revit to find it.

但是,这使我的部署策略大大复杂化,因为它们对一堆通常不会考虑dll(包括我在内)之类的架构师.有没有一种方法可以静态链接子dll,这样就不必分发其他文件了?

However, this greatly complicates my deployment strategy for a bunch of architects that don't normally contemplate things like dlls (this includes me). Is there a way to statically link the child dll so that there aren't more files that I have to distribute?

推荐答案

建筑编码器讨论了此设置 RvtVa3c程序集解析器.

这篇关于在运行时找不到引用的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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