Windows Forms: .NET Core Windows Forms Designer
By FoxLearn 11/13/2019 4:37:21 AM 11.94K
To enable the designer for Windows Forms Application using .NET Core 3.0 in Visual Studio 2019, you should download and install the Windows Forms .NET Core Designer VSIX package.
.NET Core Winforms Designer VSIX package: Link
After you install .NET Core Designer, Visual Studio will automatically add the controls to the Visual Studio Toolbox.
Controls .NET Core Windows Forms Designer Preview 1 support:
- Pointer
- Button
- Checkbox
- CheckedListBox
- ComboBox
- DateTimePicker
- Label
- LinkLabel
- ListBox
- ListView
- MaskedTextBox
- MonthCalendar
- NumericUpDown
- PictureBox
- ProgressBar
- RadioButton
- RichTextBox
- TextBox
- TreeView
Features not making the support cut include:
- Container
- Resources
- Component Tray
- In-place editing
- Designer Actions
- Databinding
- User Controls/Inherited Controls
Creating a new .Net Core Windows Forms Application project.
then you can drag some controls from the Visual Studio Toolbox to your winform and create a simple UI as shown below.
If you get an error when rebuilding your project as shown below.
Assets file '<path>\project.assets.json' not found. Run a NuGet package restore to generate this file.
Restore nuget packages console
You can select Tools menu from your Visual Studio => NuGet Package Manager => Package Manager Console, then enter the command as shown below.
>dotnet restore
Press F5 to run your project.
Throught this post, I hope so you can use .NET Core 3.0 Winforms Designer in Visual Studio using the Microsoft Preview of .NET Core WinForms Designer.
VIDEO TUTORIAL
- ASP.NET Core: How to Create RDLC Report in ASP.NET Core
- How to fix Assets file 'project.assets.json' not found
- How to fix 'IMvcBuilder' does not contain a definition for 'AddNewtonsoftJson'
- How to fix 'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer'
- How to set cookie ValidationInterval in ASP.NET Core
- How to fix LoginPath not working in ASP.NET Core
- How to fix Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager'
- How to Configure ASP.NET Core Identity password policy