'ClickOnce equivalent with query parameters

I have a .NET 6 WPF application deployed with ClickOnce. Deployment and update works fine, however, the ApplicationDeployment class is not available anymore in .NET 6, which means I can't read the query string given in the startup URL.

Is there an alternative or a workaround, working with .NET 6, that can still be launched with a URL and that can accept query parameters?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source