FlowDocument .NET Core 3 的 NuGet 包

NuGet package for FlowDocument .NET Core 3

根据this MS page FlowDocument是Namespace下的.NET Core 3.0的一部分: System.Windows.Documents。但是,我找不到 System.Windows.Documents NuGet 包,那么正确的 NuGet 包是什么?

抱歉,问题很简单,但我的搜索没有任何结果。

谢谢!

编辑:是的,我已经 "Include prerelease" 检查了。

作为 .NET Core 3 一部分的 WPF 程序集未作为 NuGet 依赖项分发。

如果要构建依赖于 WPF 的程序集,请尝试使用 Wpf CustomControlLibrary (NET Core) 项目模板。当您构建或打包该项目时,它将使用新的 FrameworkReference 来编码它需要 WPF 框架的事实。

这是在 Pack 上创建的 NUSPEC 示例:

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
  <metadata>
    <id>WpfCustomControlLibrary1</id>
    <version>1.0.0</version>
    <authors>WpfCustomControlLibrary1</authors>
    <owners>WpfCustomControlLibrary1</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>Package Description</description>
    <dependencies>
      <group targetFramework=".NETCoreApp3.0" />
    </dependencies>
    <frameworkReferences>
      <group targetFramework=".NETCoreApp3.0">
        <frameworkReference name="Microsoft.WindowsDesktop.App.WPF" />
      </group>
    </frameworkReferences>
  </metadata>
</package>