HandyControl
HandyControl copied to clipboard
FileNotFoundException:未能正确加载文件或程序集“HandyControl”
trafficstars
Describe the bug
.net版本为“net45”,项目类型为“类库”,新建空白窗体,提示未能正确加载程序集,经过测试必须添加“hc:Shield”和对应的“click”事件,程序运行正常,
Steps to reproduce the bug
- 第三方程序加载“dll”,比如“AutoCad”
- 创建窗体并显示“new Window1().Show();”
- 程序抛出异常 备注: 经过测试与试验,只有在添加“hc:Shield”控件同时必须添加对应的“Click”事件,程序可以正常运行,着实费解
Expected behavior
No response
Screenshots
xaml代码
异常截图

经过修改可以正常运行的xaml代码与运行截图


NuGet package version
HandyControl 3.4.0
IDE
Visual Studio 2022
Framework type
.Net Framework 4.8
Windows version
No response
Additional context
No response
试试刚开始的时候先编译生成一下,这样子应该就能直接用了