ClickOnce for .NET on Windows
Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
This article describes the differences between ClickOnce for .NET Core 3.1, .NET 5, and later, versus ClickOnce for .NET Framework.
Starting in Visual Studio 2019, ClickOnce for .NET Core 3.1 and .NET 5 or later uses the Publish tool instead of the Publish Wizard and properties pages. The Publish tool creates a .pubxml file, called a publish profile. Most of the properties previously available in the wizard are available to configure in the Publish tool. For detailed instructions, see Deploy a .NET Windows application using ClickOnce.
For building from the command line using MSBUILD, you need to specify the .pubxml file. For more information, see Build .NET ClickOnce applications from the command line.
Starting in .NET 7, you can access properties in the
ApplicationDeployment class using environment variables. For more information, see Access ClickOnce deployment properties in .NET.
In .NET Core 3.1 and .NET 5 and later, use dotnetmage.exe instead of Mage.exe to create the ClickOnce deployment.
Unsupported Publish properties on .NET Core 3.1 and .NET 5 and later