Search code examples
visual-studiovisual-studio-2019clickonce.net-4.8

Visual Studio Clickonce Specific Target tab missing


Following instructions in this link to deploy with Clickonce: https://learn.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-using-clickonce-folder?view=vs-2019

I right click in the project and select Publish, and the Publish wizard opens, with the "Target" tab selected as expected, and I select "Folder" option. Then, when I click the "Next" button, it does not appear the "Specific tab", but it goes directly to "Publish location" tab. The problem with this is that I cannot select "Clickonce" anywhere because I do not see the "Specific target" tab, so there is no "Install location", "Settings", "Sign manifests" or "Configuration" tabs.

This is the expected tab that not appears: enter image description here

And this is the screen I see (sorry, it is in Spanish): enter image description here

It is a .NET Framework 4.8 project.

Why is Clickonce missing? What can I do to get the right screen in the wizard so I can use Clickonce?

Thank you

UPDATE: I have tried to update to .NET 5, and then magically ClickOnce appears in the Publish wizard. So, how can I use ClickOnce with net48 in a SDK scheme project? Any help?


Solution

  • .Net Framework ClicOnce is not compatible with the SDK style projects, here the link discussion. So the correct answer here would be: is not possible.

    What you could do is either downgrade your csproj style to old version or update your project to a .net core 5 or use cli msbuild to deploy.