HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

FileNotFoundException:未能正确加载文件或程序集“HandyControl”

Open Leon-lu opened this issue 2 years ago • 1 comments
trafficstars

Describe the bug

.net版本为“net45”,项目类型为“类库”,新建空白窗体,提示未能正确加载程序集,经过测试必须添加“hc:Shield”和对应的“click”事件,程序运行正常,

Steps to reproduce the bug

  1. 第三方程序加载“dll”,比如“AutoCad”
  2. 创建窗体并显示“new Window1().Show();”
  3. 程序抛出异常 备注: 经过测试与试验,只有在添加“hc:Shield”控件同时必须添加对应的“Click”事件,程序可以正常运行,着实费解

Expected behavior

No response

Screenshots

xaml代码 image 异常截图 image

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

image

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

Leon-lu avatar Feb 13 '23 06:02 Leon-lu

试试刚开始的时候先编译生成一下,这样子应该就能直接用了

7urnin avatar Apr 11 '23 06:04 7urnin