具有 1 个参数的构造函数过多。行为不可预测
Too many constructors with 1 parameters. The behaviour is unpredictable
似乎无处不在,ReSharper 开始在我的所有 .xaml
文件中报告此警告:
Too many constructors with 1 parameters. The behaviour is unpredictable
似乎我的项目中每次使用 {x:Type}
现在都会导致此警告。我尝试了以下方法来清除警告——都无济于事:
- 删除最近添加的 NuGet 包
- 正在清除我的 ReSharper 缓存
- Clean/Rebuild解决方案
我应该注意到我的项目构建和运行都很好。我很难过。这是怎么回事?
看起来 ReSharper 根本不喜欢 System.Windows
在 WPF 应用程序中被引用。我将对 MvvmValidation
的引用还原为 net40-client
版本,并复制了我需要的 类,它仅在便携版本(需要 System.Windows
引用的版本)中可用.
似乎无处不在,ReSharper 开始在我的所有 .xaml
文件中报告此警告:
Too many constructors with 1 parameters. The behaviour is unpredictable
似乎我的项目中每次使用 {x:Type}
现在都会导致此警告。我尝试了以下方法来清除警告——都无济于事:
- 删除最近添加的 NuGet 包
- 正在清除我的 ReSharper 缓存
- Clean/Rebuild解决方案
我应该注意到我的项目构建和运行都很好。我很难过。这是怎么回事?
看起来 ReSharper 根本不喜欢 System.Windows
在 WPF 应用程序中被引用。我将对 MvvmValidation
的引用还原为 net40-client
版本,并复制了我需要的 类,它仅在便携版本(需要 System.Windows
引用的版本)中可用.