.NET Core Support
- 2 minutes to read
.NET Core is an open-source, general-purpose development platform maintained by Microsoft and the .NET community on GitHub.
Prerequisites
Create .NET Core Applications
- Create a new Windows Forms App (.NET Core) project.
- Obtain your NuGet Feed URL.
- Setup Visual Studio’s NuGet Package Manager.
- Install the DevExpress.WindowsDesktop.Win NuGet package.
- Build the project.
Upgrade .NET Framework Applications
Currently, there is no way to port .NET Framework apps to .NET Core in Visual Studio. You need to copy project folders and replace .csproj files. See the How to port desktop applications to .NET Core 3.0 article by Microsoft for more information.
Deploy .NET Core Applications
Self-Contained Deployment
Your applications can be deployed in two different ways:
Framework-dependent deployment - the application does not include .NET Core. The application may not work on a client machine if the correct .NET Core version is not installed.
Self-contained deployment - .NET Core is a part of the application package. The disadvantages of this approach are that you must select target platforms in advance, and distrubute larger deployment packages.
You can deploy self-contained applications in Visual Studio or call the following command in the command-line interface:
dotnet publish -c Release -r win10-x64 --self-contained true
See the .NET Core application deployment article for more information.
Single-File Applications
You can publish .NET Core applications as one executable file. To do this, run the command prompt, navigate to the application folder, and call the following command:
dotnet publish -r win10-x64 -c Release -p:PublishSingleFile=true
See the “Single-File Applications With .NET Core 3” blog post for more information.
Limitations
- Global .NET Core 3 platform limitations, not specific for DevExpress controls.
- Visual Studio Toolbox integration and design time features (smart tags, collection editors and other designer dialogs, Scaffolding Wizard, etc.) are not supported.