From 9318ac40aeecb66d0e53621a4711fe489d0a2c29 Mon Sep 17 00:00:00 2001 From: Sujit Nayak Date: Mon, 25 Jan 2021 10:27:47 -0800 Subject: [PATCH] ClickOnce Assembly filtering code for .net core is filtering out system.servicemodel package assemblies incorrectly. Fix the code to not filter assemblies if they are are marked as copylocal --- src/Tasks/ResolveManifestFiles.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tasks/ResolveManifestFiles.cs b/src/Tasks/ResolveManifestFiles.cs index fcf321c1beb..ee59ffb9b5e 100644 --- a/src/Tasks/ResolveManifestFiles.cs +++ b/src/Tasks/ResolveManifestFiles.cs @@ -732,7 +732,7 @@ private bool IsFiltered(ITaskItem item) { if (identity?.IsInFramework(Constants.DotNetCoreIdentifier, null) == true) { - return true; + return !GetItemCopyLocal(item); } } else if (identity?.IsInFramework(Constants.DotNetFrameworkIdentifier, TargetFrameworkVersion) == true)