简体   繁体   English

无法在面向 .Net Standard 2.0 的项目中加载 Revit API

[英]Unable to load Revit API in a project targeting .Net Standard 2.0

I am trying to use xUnitRevitUtils.2020 package which has a dependency on ModPlus.Revit.API.2020.我正在尝试使用依赖于 ModPlus.Revit.API.2020 的 xUnitRevitUtils.2020 包。 My project target framework is .Net Standard 2.0.我的项目目标框架是 .Net Standard 2.0。 I receive the following warning:我收到以下警告: 在此处输入图片说明

and when I try to run the application I get the following exception:当我尝试运行该应用程序时,出现以下异常: 在此处输入图片说明

and the application crashes.并且应用程序崩溃。 Is there any solution for this problem ?这个问题有什么解决方案吗?

you need to add the RevitAPI.dll reference to your project from Revit folder.您需要将 RevitAPI.dll 引用从 Revit 文件夹添加到您的项目中。 see: https://knowledge.autodesk.com/search-result/caas/simplecontent/content/lesson-1-the-basic-plug.html请参阅: https : //knowledge.autodesk.com/search-result/caas/simplecontent/content/lesson-1-the-basic-plug.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM