From c7be8ab62e3c37fe6a661e2afb0621ae5d785e4a Mon Sep 17 00:00:00 2001 From: Sujit Nayak Date: Thu, 11 Mar 2021 14:41:18 -0800 Subject: [PATCH] Enable Ready To Run option for ClickOnce publish --- .../Microsoft.Common.CurrentVersion.targets | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/Tasks/Microsoft.Common.CurrentVersion.targets b/src/Tasks/Microsoft.Common.CurrentVersion.targets index 9c9d0d5f025..4a2a3a21c9f 100644 --- a/src/Tasks/Microsoft.Common.CurrentVersion.targets +++ b/src/Tasks/Microsoft.Common.CurrentVersion.targets @@ -4234,6 +4234,27 @@ Copyright (C) Microsoft Corporation. All rights reserved. Condition="'$(_DeploymentSignClickOnceManifests)'=='true' and '$(_DeploymentLauncherBased)' == 'true' and '$(PublishSingleFile)' == 'true'" /> + + + + <_ManifestManagedReferences Remove="@(_ReadyToRunCompileList)" /> + <_ClickOnceFiles Remove="@(_ReadyToRunCompileList)" /> + <_ClickOnceFiles Include="@(_ReadyToRunFilesToPublish)" /> + <_ClickOnceTargetFile Include="@(_ReadyToRunFilesToPublish)" Condition="'%(Filename)%(Extension)' == '$(TargetFileName)'" /> + + + + +