1
在自動執行ClickOnce發佈過程中,我們使用Mage生成應用程序清單和MsBuild GenerateDeploymentManifest任務。MsBuild任務GenerateDeploymentManifest.CreateDesktopShortcut不起作用
<GenerateDeploymentManifest AssemblyName="App.exe.application"
AssemblyVersion="$(AppVersion)"
Product="Application"
Install="true"
UpdateEnabled="true"
UpdateMode="Foreground"
OutputManifest="$(PrepareFolder)\App.exe.application"
MapFileExtensions="true"
EntryPoint="@(RelativeApplicationManifestFile)"
CreateDesktopShortcut="true"
MinimumRequiredVersion="$(AppVersion)"
/>
但CREATEDESKTOPSHORTCUT沒有任何影響,並且不創建部署清單文件所需的標籤。
獲取這樣的:
<deployment install="true"
mapFileExtensions="true"
minimumRequiredVersion="2.19.13.0">
代替
<deployment install="true"
mapFileExtensions="true"
minimumRequiredVersion="2.19.13.0"
co.v1:createDesktopShortcut="true">
難道我失去了一些東西?