07 2023 档案

摘要:如果你也像我一样是从.Net Framwork升级到.Net 7版本,那大概率会碰到不能正常读取Assembly下的正确程序集版本号,利用GetName().Version读到的是0.0.0.0,解决方法是新建一个项目,并将“AssemblyInfo.cs”复制到你的项目下Properties内。 阅读全文
posted @ 2023-07-19 11:03 东经115 阅读(166) 评论(0) 推荐(0) 编辑
摘要:因为ElementAt(index)方法是只读的,不能改动键或值,需要通过ToDictionary方法 using System; using System.Collections.Generic; using System.Linq; class MainClass { public static 阅读全文
posted @ 2023-07-06 21:19 东经115 阅读(538) 评论(0) 推荐(0) 编辑
摘要:右键调出项目属性,在生成-错误和警告-取消显示警告中加入1416。 阅读全文
posted @ 2023-07-01 10:43 东经115 阅读(597) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示