Unity 使用System.Windows.Forms.dll 等发布报错

“The dll is not allowed to be included or could not be found” while building."解决办法

https://docs.unity3d.com/Manual/dotnetProfileAssemblies.html
1:删除掉工程中的System.Windows.Forms.dll等文件
2:切换 .NET Standard 2.0 ->.NET 4.x
3:Asset 目录下添加 mcs.rsp/csc.rsp文件,文件内容 " -r:System.Windows.Forms.dll "

在这里插入图片描述
4:重启Unity

发布了30 篇原创文章 · 获赞 5 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_26318597/article/details/86674247