Port an Existing XAF Application to .NET Core 3.0+
2 min to read
Follow the steps below to port your XAF WinForms application from .NET Framework to .NET Core. Refer to the .NET Core 3.0+ Support in XAF WinForms Applications topic to make sure that your application can be migrated and all required components are installed on your machine.
Copy and save the current versions of all csproj files before porting.
In the Solution Explorer, unload all projects.
Replace the existing code in each csproj file with the following:
In the new code, replace the "MySolution" placeholder with your project's root namespace in the <RootNamespace> element and with the project's name in the <ProjectReference> element. Replace the "currentVersion" placeholder with the current version of DevExpress NuGet packages. You can find this version number in the NuGet Package Manager.
If you reference other projects or NuGet packages, copy the corresponding <ProjectReference> elements from the old version of the csproj files and paste them into the new one.
Reload all projects.
In the Program.cs (Program.vb) file, comment the following line: