ghost1372 / HandyControls

Contains some simple and commonly used WPF controls based on HandyControl
https://ghost1372.github.io/
MIT License
1.1k stars 104 forks source link

Could not load type... #184

Closed iverdiver closed 1 year ago

iverdiver commented 1 year ago

Describe the bug

I've added the HandyControls with and 's' at the end, version 3.4.4 to my Project. It works fine if I use the "old method when adding the code to App.xaml:

But if I use the either the "new" method for both HandyControl and HandyControls: It does not work. I want to change some of the theme colors so I'm using the unofficial version (again -> 3.4.4), but I get the following error; ![image](https://user-images.githubusercontent.com/5990307/218965632-520f96ad-b1ee-427a-b709-b1339eaa9cff.png) For some reason it states that it can't load the type from version 3.4.0.0! It seems like a bug to me, but I could be wrong. Any help appreciated ### Steps to reproduce the bug Add nuget packet HandyControls 3.4.4 Add to App.xaml ### Expected behavior _No response_ ### Screenshots _No response_ ### NuGet package version None ### IDE Visual Studio 2022 ### Framework type .Net 6.0 ### Windows version Windows 11 (22000) ### Additional context _No response_
AIUbi commented 1 year ago

Try to delete bin,obj directories, and then rebuild also check dependencies and update them manually.

iverdiver commented 1 year ago

Thanks for the reply @AIUbi. I had a dependency on another project that used HandyControls 3.4.0. Using 3.4.4 in that project solved the issue. Thank you very much.