我正在将WPF桌面应用程序从.NET Framwork迁移到Core 3.0。我正在使用System.Windows.Forms.FolderBrowserDialog(),现在陷入了如何将此引用添加到Core项目的问题。没有可用的“ System.Windows.Forms” NuGet包,在那里吗?有没有其他方法可以在Core中显示FolderBrowserDialog?
更新资料
我使用默认模板创建了Core项目,然后将粘贴的.cs和.xaml文件复制到其中。.csproj文件如下所示:
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <UseWPF>true</UseWPF>
  </PropertyGroup>
                  文档说存在该类:docs.microsoft.com/pl-pl/dotnet/api/…-请粘贴csproj文件-也许TargetFramework是错误的。
                
                
                  
                    —
                    青年旅舍,
                    
                  
                
              
                  请检查更新的问题。我也看到了该页面,但是编译器给出了错误
                
                  
                    —
                    yaugenka '19 
                    
                  
                
              The type or namespace name 'Forms' does not exist in the namespace 'System.Windows'并且没有参考导入建议。