Could not load file or assembly on VS Code
Hello 👋 I'm facing the following error:
System: Macbook M1 Pro
Runtime: .NET 7.0
IDE: VS Code
Error message:
dotnet list package
output:
My .csproj file:
What am I doing wrong? How can I debug this error?6 Replies
Update: tried with Jetbrains Rider and same errors. Will try on Windows and see if these errors persist
Rhino.Common
seems to support only .NET Framework 4.8
So:
* net7.0
is way too new to support this package
* You won't be able to use it outside of WindowsThanks for the reply! I am aware of that, but based on Rhino devs it should work despite what seems to appear in Nuget:
- https://discourse.mcneel.com/t/rhino-inside-net-core-7-0/166059/5?u=gabriel15
- https://developer.rhino3d.com/guides/rhinocommon/moving-to-dotnet-7
You won't be able to use it outside of WindowsThat would be true if the package is compiled for .NET Framework 4.8, right?
Yes, .NET Framework is Windows-only
That said, even .NET Core and .NET applications and packages can be limited to Windows-only
Especially if they use Windows-specific functionality
Got it, thanks! I did the installs on the Windows machine, same setup, and still getting that error; so I'm definitely doing something wrong 😆