moethu / SketchUpNET

SketchUp C# API - A C++/CLI API Wrapper for the Trimble(R) SketchUp(R) C API
MIT License
108 stars 34 forks source link

System.IO.FileNotFoundException with Nuget Package #44

Closed liyanjie2048 closed 2 years ago

liyanjie2048 commented 2 years ago

IDE:VS2022(x64 17.1) Package:SketchUpNET 1.7.2 from Nuget with Nuget Package Manager Project:both Console(.Net Core but change targetframework .net 6.0 to .net462) and Console(.Net Framework 4.6.2) Code: `using System; using SketchUpNET;

namespace ConsoleApp { class Program { static void Main(string[] args) { SketchUp skp = new SketchUp(); if (skp.LoadModel(@"E:\test.skp")) { Console.WriteLine("TEST"); } } } }`

Error:Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly "SketchUpNET.dll" or it's referrences.