Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在.net 8 中使用CloneUtil.Clone()异常System.NotSupportedException #56

Open
biu8bo opened this issue Aug 5, 2024 · 0 comments
Open

Comments

@biu8bo
Copy link

biu8bo commented Aug 5, 2024

在.net8中使用CloneUtil.Clone()克隆对象报System.NotSupportedException异常,BinaryFormatter存在安全漏洞,在.net 8中被废弃,应避免使用(https://learn.microsoft.com/zh-cn/dotnet/standard/serialization/binaryformatter-security-guide)
image

var obj = new TestObj()
{
};
var obj2 = EasyTool.CloneUtil.Clone(obj);
 
[Serializable]
class TestObj
{
}

具体版本

2023.917.1-pre-231010054442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant