http://blogs.clariusconsulting.net/kzu

Daniel Cazzulino's Blog

Go Back to
kzu′s Latest post

How to exclude copy local referenced assemblies from a VSIX

When you add library references to project that are not reference assemblies or installed in the GAC, Visual Studio defaults to setting Copy Local to True:

image

If, however, those dependencies are distributed by some other means (i.e. another extension, or are part of VS private assemblies, or whatever) and you want to avoid including them in your VSIX, you can add the following property to the project file:

<PropertyGroup>
  ...
  <IncludeCopyLocalReferencesInVSIXContainer>false</IncludeCopyLocalReferencesInVSIXContainer>
Comments

1 Comment

  1. Is there a way to exclude all and then include only a select few explicitly in the manifest? MSDN docs don’t cover adding direct assembly references to the manifest schema. (Working inside of a VS 2012 Package)