【问题标题】:Unable to load Revit API in a project targeting .Net Standard 2.0无法在面向 .Net Standard 2.0 的项目中加载 Revit API
【发布时间】:2021-12-20 01:54:50
【问题描述】:

我正在尝试使用依赖于 ModPlus.Revit.API.2020 的 xUnitRevitUtils.2020 包。我的项目目标框架是.Net Standard 2.0。我收到以下警告:

当我尝试运行应用程序时,出现以下异常:

应用程序崩溃。这个问题有解决办法吗?

【问题讨论】:

  • 您是否尝试过卸载并重新安装软件包?

标签: c# .net-core .net-framework-version revit-api .net-standard-2.0


【解决方案1】:

您需要将 RevitAPI.dll 引用从 Revit 文件夹添加到您的项目。 见:https://knowledge.autodesk.com/search-result/caas/simplecontent/content/lesson-1-the-basic-plug.html

【讨论】:

  • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
  • 谢谢。我试图在 Revit 之外使用它——而不是作为 Revit 插件。但最近才知道这是不可能的。谢谢你的回答
猜你喜欢
  • 1970-01-01
  • 2018-02-09
  • 1970-01-01
  • 2019-01-18
  • 1970-01-01
  • 2018-05-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多