Krypton-Suite / Extended-Toolkit

A companion toolkit for the standard toolkit.
MIT License
193 stars 32 forks source link

[Question]: Exceptions when using NuGet #463

Open sindizzy opened 9 months ago

sindizzy commented 9 months ago

So maybe I'm doing something wrong but I added the Ultimate from nuget. Wanted to check out the controls on my .NET Framework 4.7.2 project. Once the download was complete I added some controls. CircularProgressBar failed to load with the message below. Then I added a calendar and it threw an exception as shown below. Did I miss some instructions to get the controls to work so I can give them a shot? Thanks for the great library.

image

image

image

sindizzy commented 9 months ago

I uninstalled and re-installed it using the package manager. Now it says its missing an animation DLL although I see it in the package and my references.

image

image

PWagner1 commented 9 months ago

Hi @sindizzy

Some packages may require 3rd party libraries to work. Unfortunately, NuGet doesn't support bundling of binaries within the package itself.

sindizzy commented 9 months ago

How would I know what libraries are needed? Would I just go to nuget and download the animation library?

PWagner1 commented 9 months ago

How would I know what libraries are needed? Would I just go to nuget and download the animation library?

Yes, it's one that I uploaded to work with .NET

sindizzy commented 9 months ago

Assuming its this one as the version numbers match what's already in my project:

image

PWagner1 commented 9 months ago

Assuming its this one as the version numbers match what's already in my project:

image

Might be worth removing the other versions, as these may be causing conflicts. I will add the list of third party packages to the docs & where to get them. :)

sindizzy commented 9 months ago

Ive only added the 2.0.2.0 nuget. I rebuilt and no go. The package itself seems to only have the animation DLL and nothing else.

PWagner1 commented 9 months ago

I'll have a look tomorrow

Smurf-IV commented 9 months ago

Some packages may require 3rd party libraries to work. Unfortunately, NuGet doesn't support bundling of binaries within the package itself.

@Wagnerp I think that it is possible, otherwise packages like gRPC would not work (i.e. you do not have to specify gRPC-Core if just referencing client.

PWagner1 commented 9 months ago

@Smurf-IV Is there any documentation on how to do this? It would make things easier

Smurf-IV commented 9 months ago

@Smurf-IV Is there any documentation on how to do this? It would make things easier

I would do the same as you: Search via google....

PWagner1 commented 9 months ago

@Smurf-IV Is there any documentation on how to do this? It would make things easier

I would do the same as you: Search via google....

I came to this but it's for VS 2015. Looks like it's possible via nuspec.

sindizzy commented 9 months ago

@Wagnerp Also I have installed and re-installed about 3 or 4 times and each time I uninstall, it removes the reference to System.Windows.Forms. I found this odd. Is it supposed to do that?