I'm currently making a bot for a discord server with Discord.NET and I'd like to create a WinForm for this instead of a console. Is there a way to implement WinForms to a .NET Core app?
NET Core 3.0 was released, Windows Forms went open source on GitHub. The code for Windows Forms for . NET 5 is a fork of the . NET Framework Windows Forms codebase.
WPF, would be your answer to Windows Forms if you are on the . NET platform.
Starting from .NET Core 3.0, you can create Windows Forms applications using .NET Core.
VS 2019
The project template is available in VS 2019.
VS 2017
You need to have Visual Studio 2017 Update 15.8 or higher.
Install the latest .NET Core 3.0 SDK
[daily build (latest changes, but less stable) or preview (more stable, recommended)].
Open command prompt and run the following command to create the project:
dotnet new winforms -o MyWinFormsApp
To build and run the project, you can go to the directory in which the project is created and open MyWinFormsApp.csproj
using Visual Studio, build and run it.
You can also run the following commands if you prefer to build and run from command line:
cd MyWinFormsApp
dotnet build
dotnet run
Note
Related links
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With