You need to add to csproj an additional switch:
<UseWindowsForms>true</UseWindowsForms>
Add it below UseWpf. Then try rebuild. After this, you should be able to use Forms namespace.
More Related Contents:
- Windows Forms Designer and WPF Designer for .NET Core
- Select folder dialog WPF
- Using FolderBrowserDialog in WPF application [duplicate]
- How to load image to WPF in runtime?
- How to create a WPF UserControl with NAMED content
- How do you multi-target a .NET Core class library with csproj?
- A Task’s exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was
- Add client certificate to .NET Core HttpClient
- How to pass data from MainWindow to a User Control that’s inside the MainWindow?
- Horizontal scroll for stackpanel doesn’t work
- Trace listener to write to a text box (WPF application)
- Why can’t I reference System.ComponentModel.DataAnnotations?
- Disallow/Block selection of disabled combobox item in wpf
- Content of a Button Style appears only in one Button instance
- How to build A WPF Datagrid with an unknown number of columns
- Date formatting in WPF datagrid
- How can I make a WPF combo box have the width of its widest element in XAML?
- Load a ResourceDictionary from an assembly
- Stop WPF animation, storyboard begin in xaml but stopping it in codebehind?
- ItemPropertyChanged not working on observableCollection.Why?
- WPF loading spinner
- Reportviewer tool missing in visual studio 2017 RC
- ASP.NET Core modify/substitute request body
- MyUserControl cannot be the root of a XAML file because it was defined using XAML [duplicate]
- Prism assembly reference failure: System.Windows.Interactivity
- wpf datagrid combobox column
- Net Core: Execute All Dependency Injection in Xunit Test for AppService, Repository, etc
- C#/WPF: Disable Text-Wrap of RichTextBox
- How to draw arc with radius and start and stop angle
- WPF + MVVM + RadioButton : How to handle binding with single property?