-
Notifications
You must be signed in to change notification settings - Fork 8
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 #5
迁移至.NET 6 #5
Conversation
net的版本选5.x |
为什么 |
算了那也行 |
顺便请教一下,为什么用net6编译出来是散装的,而原来4.7.2不会👉🏻👈🏻 |
迁移时自动加了几个Nuget包,现已移除 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
太长的if语句不要用三元替换 短一点的无所谓
不是,都return了还干嘛else…… |
我是傻逼 这就去改回来
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用.NET 6.0的原因详见 https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-6/ 部分情况下.NET 6能比.NET 4快100倍 |
是的没装,但是我的意思是出于方便发布和使用考虑,本身是想弄成一般下载即可使用而不需要另外装运行库👉👈
会崩 |
单一文件发布详见 https://docs.microsoft.com/dotnet/core/deploying/single-file/overview 下面的是因为你原本用的方法在新版被弃用了,现已修复 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这几个地方其实没必要改成task吧 毕竟不用abort
顺便请教一下,如果task执行完不管他是不是也没啥问题(就是说是不是没必要cancel掉
|
出于方便考虑我可能还是会把版本降回去……您所说的速度更快目前来看暂时没什么影响……不好意思哈orz |
你不知道有多版本编译吗,, |
请问怎么弄👀 |
https://docs.microsoft.com/zh-cn/dotnet/core/porting/project-structure |
谢谢,这个解决了,可以编译了
这个是咋了 |
https://docs.microsoft.com/zh-cn/dotnet/api/system.resources.missingmanifestresourceexception |
要懂得查doc |
No description provided.