From dcc380acf43dd97badc6eb13d7a1b4b84c9aae48 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Wed, 7 Jan 2026 13:26:34 -0500 Subject: [PATCH] fix(sdk): exclude VSPackage.resx from default EmbeddedResource includes The .NET SDK auto-includes *.resx files as EmbeddedResource items. The VsixSdk also includes VSPackage.resx with special metadata (MergeWithCTO). This caused duplicate item errors. Fix by excluding VSPackage.resx patterns from DefaultItemExcludes so the SDK's explicit includes with MergeWithCTO metadata are the only ones. --- src/CodingWithCalvin.VsixSdk/Sdk/Sdk.Vsix.props | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CodingWithCalvin.VsixSdk/Sdk/Sdk.Vsix.props b/src/CodingWithCalvin.VsixSdk/Sdk/Sdk.Vsix.props index 97fb2ff..2db6af2 100644 --- a/src/CodingWithCalvin.VsixSdk/Sdk/Sdk.Vsix.props +++ b/src/CodingWithCalvin.VsixSdk/Sdk/Sdk.Vsix.props @@ -80,6 +80,12 @@ Source generators already include them - having them on disk is for visibility only --> $(DefaultItemExcludes);Generated\** + + + $(DefaultItemExcludes);**/VSPackage.resx;**/VSPackage.*.resx