Skip to content

Commit dcc380a

Browse files
committed
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.
1 parent f012121 commit dcc380a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/CodingWithCalvin.VsixSdk/Sdk/Sdk.Vsix.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
Source generators already include them - having them on disk is for visibility only
8181
-->
8282
<DefaultItemExcludes>$(DefaultItemExcludes);Generated\**</DefaultItemExcludes>
83+
84+
<!--
85+
Exclude VSPackage.resx from default EmbeddedResource includes
86+
The SDK adds these with special metadata (MergeWithCTO) in targets
87+
-->
88+
<DefaultItemExcludes>$(DefaultItemExcludes);**/VSPackage.resx;**/VSPackage.*.resx</DefaultItemExcludes>
8389
</PropertyGroup>
8490

8591
<!-- F5 Debugging Configuration -->

0 commit comments

Comments
 (0)