错误无法安装包 'Autodesk.Forge.Design.Automation beta 3.0.0'
Error Could not install package 'Autodesk.Forge.Design.Automation beta 3.0.0'
尝试将 "Autodesk.Forge.DesignAutomation" nuget 包添加到项目时出现以下错误:
"Severity Code Description Project File Line Suppression State Error Could not install package 'Autodesk.Forge.DesignAutomation 3.0.0-beta2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. " 0
您似乎需要创建 .Net core / .Net standard 项目而不是 .NetFramework。参考:https://github.com/Autodesk-Forge/forge-api-dotnet-design.automation.
.net 4.7.1 支持.net standard 2.0 所以你应该可以安装这个包。事实上,我使用 VS 2019 将此包安装到 .net 4.7.1 项目中没有问题。
看起来你使用的是 VS 2015,所以我怀疑这是 VS 2015 的限制。尝试使用最新的 nuget.exe 并手动安装软件包。或者使用最新的Visual Studio.
看来您遇到了同样的问题here...
所以请尝试将您的 NuGet 升级到 3.4.4 here。
尝试将 "Autodesk.Forge.DesignAutomation" nuget 包添加到项目时出现以下错误:
"Severity Code Description Project File Line Suppression State Error Could not install package 'Autodesk.Forge.DesignAutomation 3.0.0-beta2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. " 0
您似乎需要创建 .Net core / .Net standard 项目而不是 .NetFramework。参考:https://github.com/Autodesk-Forge/forge-api-dotnet-design.automation.
.net 4.7.1 支持.net standard 2.0 所以你应该可以安装这个包。事实上,我使用 VS 2019 将此包安装到 .net 4.7.1 项目中没有问题。
看起来你使用的是 VS 2015,所以我怀疑这是 VS 2015 的限制。尝试使用最新的 nuget.exe 并手动安装软件包。或者使用最新的Visual Studio.
看来您遇到了同样的问题here...
所以请尝试将您的 NuGet 升级到 3.4.4 here。