FQ后得到解决方案:

双击项目文件

加入:

<FrameworkReference Include="Microsoft.WindowsDesktop.App.WPF" />

虽然很奇葩但是,这就是正解。

 

参考:

https://stackoverflow.com/questions/60398101/getting-the-access-to-the-system-printing-namespace-in-net-core-console-applica

 

以及某个QQ群里面的群友,也提到需要如此解决。

顺便说一句:.net的QQ群10个里面有9个在吹牛逼。

就一个在讨论问题。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2021-05-17
  • 2021-10-24
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2021-09-12
  • 2021-09-23
  • 2021-06-08
  • 2022-12-23
  • 2021-05-31
相关资源
相似解决方案