问题如题
解决方法:在类库的AssemblyInfo.cs文件中加入:
[assembly: AllowPartiallyTrustedCallers]
Powered by: 博客园 Copyright © 2024 张荣华 Powered by .NET 9.0 on Kubernetes