0

while trying to add "Autodesk.Forge.DesignAutomation" nuget package to project following error:

"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

Dipak G
  • 7
  • 1

3 Answers3

0

It seems you need to create a .Net core / .Net standard project not a .NetFramework. Ref: https://github.com/Autodesk-Forge/forge-api-dotnet-design.automation.

why_not
  • 1
  • 1
  • 1
0

.net 4.7.1 supports .net standard 2.0 so you should be able to install this package. In fact, I have no problem installing this package using VS 2019 into a .net 4.7.1 project.

It looks like you use VS 2015 so I suspect that this is limitation of VS 2015. Try to use the latest nuget.exe and manually install the package. Or use the latest Visual Studio.

Albert Szilvasy
  • 461
  • 3
  • 5
0

Looks like you've hit the same issue here...

So try upgrade your NuGet to 3.4.4 here.

Bryan Huang
  • 5,247
  • 2
  • 15
  • 20