Home > Net >  Is it possible to use FolderBrowserDialog in a WPF Net 6 application?
Is it possible to use FolderBrowserDialog in a WPF Net 6 application?

Time:11-12

In a Net 5 application I can use win forms so I can use this controls, but I would like to migrate to Net 6, but I don't see the way to use win forms controls.

I don't know if it is possible, or if it would be possible to use another file browser in my WPF net 6 application.

Thanks.

CodePudding user response:

.NET 5 and .NET 6 are still .NET Core and don't require a specific IDE to compile. Project settings are stored in the csproj file and can be edited even with any text editor.

You can inspect the contents of the .NET 5 project and copy any settings you need to the .NET 6 project. Or you can simply change the project's target from net5.0 to net6.0.

In this case the setting is

<UseWindowsForms>true</UseWindowsForms>
  • Related