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 6.0已放弃System.Drawing.Common在非windows平台的支持,将会强制抛出异常 #255

Open
Milkitic opened this issue Jan 28, 2022 · 2 comments

Comments

@Milkitic
Copy link

经查询,本项目用到了QRCoder依赖,且项目已转成.net 6: #210。但是如标题所示,这会存在问题……
现QRCoder已考虑转为ImageSharp,然而QRCoder也在等待ImageSharp 2.0的进度。
详见:codebude/QRCoder#315
目前有2个建议方法:

  1. 是先转回.net 5
  2. 参考https://github.com/codebude/QRCoder/blob/master/QRCoder/QRCode.cs#L31 ,不调用Drawing相关的方法,而是在控制台中直接显示出二维码。
@nilaoda
Copy link
Owner

nilaoda commented Jan 28, 2022

收到

@VoidxHoshi
Copy link

收到

QRCoder 新版本 1.43 加了2个新target,net6.0-windows才含System.Drawing,net6.0不含。
我也推荐直接在命令行里打印出来二维码

nilaoda added a commit that referenced this issue Feb 27, 2022
支持自定义保存路径,修改了下载弹幕功能的逻辑,提示下载可能需要大会员,尝试实现#255,尝试实现#191
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

3 participants