[ACCEPTED]-.NET 5.0 Open Select Folder Dialog-winforms
Accepted answer
I didn't realize I needed to edit the .csproj 6 file, nor did I know you could have both 5 WPF and Windows Forms declared at the same 4 time there. I kept thinking I needed to 3 add it as a reference.
Modifying the project 2 file in this way worked and allowed me to 1 declare using System.Windows.Forms;
without getting an error.
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<RootNamespace>WpfApp1_5</RootNamespace>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.