英文: Code analysis warnings (IDExxxx) when building a .NET Framework project 问题 我已在.editorconfig文件中启用...
将可空类型转换为非可空引用和值类型在单个方法中。
英文: take nullable and return non-nullable reference and value types in single method 问题 Sure, here's...
设置依赖规则的方法?
英文: How to set up dependency rules? 问题 我想为一个具有多个解决方案和程序集的存储库设置一些新的依赖规则。规则应该是:在任何项目中,所有类型为*.ABC.的程序集都...
Roslyn 无法编译一个简单的项目
英文: Roslyn fails to compile a trivial project 问题 我正在尝试使用Roslyn来编译一个简单的项目,但它失败了。 考虑以下设置(假设c:\temp存在并且...
Dotnet Core – 如何处理 RNGCryptoServiceProvider()
英文: Dotnet Core - How to dispose of RNGCryptoServiceProvider() 问题 我收到了警告: 严重性 Code 描述 项目 文件 行 抑制状态 警...
Dotnet Core – Getting a warning on 'string.Replace(string, string?)' saying use 'string.Replace(string, string?, System.StringComparison)'
英文: Dotnet Core - Getting a warning on 'string.Replace(string, string?)' saying use 'str...
提供方法的所有参数的修复方法(Roslyn – FixProvider)
英文: How to provide fix for all parameters of the method (Roslyn - FixProvider) 问题 我为添加验证以确保参数不为空的代码分...