generated from dotnet/new-repo
-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Labels
Description
It would be valuable if .NET 5 applications, deployed by ClickOnce, could gain access to URL parameters, specified by the user in the app activation URL.
.NET FX applications could use ApplicationDeployment class to obtain URL parameters: https://docs.microsoft.com/en-us/dotnet/api/system.deployment.application.applicationdeployment.activationuri?view=netframework-4.8
This method is not available to .NET 5 applications as ApplicationDeployment class does not exist.
However, Launcher is a .NET FX application and has access to ActivationUri property.
One solution is for Launcher to obtain URL parameters and persist them to a Json file that would be read by .NET 5 application. This would follow the proposed solution for the similar issue: #27
tormnator, Pipelynx, Identifier, Mrxx99, SimonKocurek and 5 moreMrxx99