We have ClickOnce app. It is generated through Azure Pipelines
with /p:target=publish
. Because of different environments (even closed networks) there is an web app which you can download setup.exe
file.
Using mage.exe
before the download, the InstallUrl
and DeploymentUrl
are changed based on the current instance Base Uri
. This is done with ASP.NET Core WebAPI
.
Changing deployment url and install URL is done as follows:
mage.exe -update {manifestFullPath} -ProviderUrl {finalUri}
And changing the URL of setup.exe
[PATH]\setup.exe /url="BaseUri"
where BaseUri
is pointing to the controller.
Here, I know I have to resign the application manifest of the current version and the base .application
which I'm doing with mageui.exe
at the moment.
The Controller
is invoked, but the moment it has to start downloading the binaries I get
Reference in the deployment does not match the identity defined in the application manifest
Why is that and how to fix it?