galer
galer
CC#
Created by galer on 1/3/2024 in #help
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:
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'RhinoCommon, Version=8.2.23346.13001, Culture=neutral, PublicKeyToken=552281e97c755530'. The system cannot find the file specified.

File name: 'RhinoCommon, Version=8.2.23346.13001, Culture=neutral, PublicKeyToken=552281e97c755530'
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'RhinoCommon, Version=8.2.23346.13001, Culture=neutral, PublicKeyToken=552281e97c755530'. The system cannot find the file specified.

File name: 'RhinoCommon, Version=8.2.23346.13001, Culture=neutral, PublicKeyToken=552281e97c755530'
dotnet list package output:
[net7.0]:
Top-level Package Requested Resolved
> Grasshopper 8.2.23346.13001 8.2.23346.13001
> RhinoCommon 8.2.23346.13001 8.2.23346.13001
[net7.0]:
Top-level Package Requested Resolved
> Grasshopper 8.2.23346.13001 8.2.23346.13001
> RhinoCommon 8.2.23346.13001 8.2.23346.13001
My .csproj file:
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<NoWarn>NU1701</NoWarn>
</PropertyGroup>


<ItemGroup>
<PackageReference Include="Grasshopper" Version="8.2.23346.13001" />
<PackageReference Include="RhinoCommon" Version="8.2.23346.13001" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<NoWarn>NU1701</NoWarn>
</PropertyGroup>


<ItemGroup>
<PackageReference Include="Grasshopper" Version="8.2.23346.13001" />
<PackageReference Include="RhinoCommon" Version="8.2.23346.13001" />
</ItemGroup>

</Project>
What am I doing wrong? How can I debug this error?
10 replies