How does one use mage.exe to create a ClickOnce deployment manifest, when the application files have the *.deploy extension? Some give up and use MSBuild.exe and the GenerateDeploymentManifest task instead. What if you want to use mage.exe directly?
相关问题
- Can ClickOnce or InstallShield setup SQL Server or
- ClickOnce updates all files. Why?
- How to set LARGEADRESSAWARE in no signing assembly
- Resign manifest of click-once application change f
- Deploy EXE provided by Nuget package as a componen
相关文章
- How to add external file to application files ( cl
- Automatically install updates with ClickOnce deplo
- What can a ClickOnce application in an Internet Zo
- How to run the publish/clickonce build step in Jen
- How to update just one DLL in a ClickOnce installa
- How to persist app.config through ClickOnce update
- Visual Studio ClickOnce deployment - certificate e
- Clickonce messagebox on install: Strong name signa
Like Wally says, you can't make a deployment manifest for *.deploy files.
However, you can remove the .deploy extensions and THEN use Mage.exe. You can remove the .deploy extension manually, or you can also do so in the Publish subsection under Properties for your project in Visual Studio (I'm using 2017, but it should be the case for earlier editions as well.)
Under Publish, select Options. Inside of Publish Options, select Deployment. There is a checkbox where you can toggle "Use '.deploy' file extension". By unchecking this box, the building/publishing of your app will generate all of its usual files but skip the .deploy extension.
From here, you can use Mage.exe directly.
If you want to use mage.exe alone, what you need to know is that it cannot be done. At least not with mage.exe alone.
Mage.exe does not have a way to build a deployment manifest (*.application file) to download *.deploy files. You must manually edit the deployment manifest (*.application file) before signing it. Specifically, you need to add the mapFileExtensions attribute to the deployment XML element.
As an example suppose you have an executable named ClickOnceText.exe in a folder named 1.0.0.0., here is what you do:
And here is the trick. Add the mapFileExtensions to the deployment element:
And then sign the deployment manifest (*.application).