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

Can not load SketchUpNET.dll #51

Open alexfevery opened 2 years ago

alexfevery commented 2 years ago

VS 2022 using x64

I installed 1.7.2 via Nuget and tried to run your example code. I get an exception

"System.IO.FileNotFoundException: 'Could not load file or assembly 'SketchUpNET.dll' or one of its dependencies. The specified module could not be found.'"

I tried deleting the reference and downloading the 1.7.3 dll and referencing that instead. Same error.

ghost commented 1 year ago

Same error here. Could you please fix this issue and update the nuget package to 1.7.3?

PauliusVa commented 1 year ago

I think nuget package was deployed using debug mode , as i did a research i saw with Dependency Walker that it is targeting: VCRUNTIME140D.DLL and according chat gpt its The "VCRUNTIME140D.DLL" file is a part of the Microsoft Visual C++ Redistributable package. The "D" in the filename indicates that it is a debug version of the DLL, which is typically used by developers for debugging purposes. So usually when i deploy to machines that dont have visual studio installed they shouldnt have any debug versions of redistributables, thats why dependency chain is causing this. Can @moethu check what version you did the nuget package ?

moethu commented 1 year ago

Thanks for reporting this, I guess I must have packed the debug version. Will check this.El 20.10.2023, a las 11:40, Paulius @.***> escribió: I think nuget package was deployed using debug mode , as i did a research i saw with Dependency Walker that it is targeting: VCRUNTIME140D.DLL and according chat gpt its The "VCRUNTIME140D.DLL" file is a part of the Microsoft Visual C++ Redistributable package. The "D" in the filename indicates that it is a debug version of the DLL, which is typically used by developers for debugging purposes. So usually when i deploy to machines that dont have visual studio installed they shouldnt have any debug versions of redistributables, thats why dependency chain is causing this. Can @moethu check what version you did the nuget package ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>