正如标题所说,我无法让Fody和插件Fody.PropertyChanged在 .NET Core 3.0 或任何 .NET Core 版本中工作。阅读各个 GitHub 页面上的问题并不能回答我的问题,我也无法找到任何相关的答案。
安装后,我无法再运行我的 WPF 项目,并且出现以下错误:
The target process exited without raising a CoreCLR started event.
Ensure that the target process is configured to use .NET Core.
This may be expected if the target process did not run on .NET Core.
The program '[21820] CalculationToolsApp.exe' has exited with code -2147450749 (0x80008083).
有什么建议么?
编辑:我发现我(也许)不能在 FodyWeavers.xml 文件中像这样使用“Fody.Costura”和“Fody.PropertyChanged”:
<Weavers>
<PropertyChanged />
<Costura />
</Weavers>
这应该不是问题,因为使用 .NET Core 我无论如何都可以创建单个文件应用程序。从 FodyWeavers.xml 中删除 Costura 引用解决了我的问题!