<?xml version="1.0" encoding="utf-8"?> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- This file can be deprecated when this issue is fixed: https://github.com/NuGet/Home/issues/2365 and when the VS SDK NuGet packages have been updated to leverage the new feature. --> <Target Name="LinkVSSDKEmbeddableAssemblies" AfterTargets="ResolveReferences" BeforeTargets="FindReferenceAssembliesForReferences"> <ItemGroup> <!-- Special notes about some assemblies that do or do not appear in the below list: Microsoft.Internal.VisualStudio.Shell.Interop.10.0.DesignTime - Not a fully embeddable assembly, but it does not ship to load at runtime, so we MUST embed it. Evidently no one uses the one constant string it defines that would block embedding. Therefore we DO list it below since otherwise it's an assembly load failure at runtime in VS. --> <ReferencePath Condition=" '%(FileName)' == 'Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Imaging.Interop.15.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Setup.Configuration.Interop' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Embeddable' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.11.0' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.12.0' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.14.1.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.14.2.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.14.3.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.15.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.15.1.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.15.3.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.15.5.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.15.6.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.15.7.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.15.8.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.16.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.16.1.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.16.2.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.16.3.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.16.4.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.16.5.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.16.6.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.16.7.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Shell.Interop.16.9.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.TextManager.Interop.10.0' or '%(FileName)' == 'Microsoft.VisualStudio.TextManager.Interop.11.0' or '%(FileName)' == 'Microsoft.VisualStudio.TextManager.Interop.12.0' or '%(FileName)' == 'Microsoft.VisualStudio.TextManager.Interop.12.1.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.TextManager.Interop.14.2.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.TextManager.Interop.15.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.TextManager.Interop.15.1.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.TextManager.Interop.16.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.Feedback.Interop.12.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.ProjectSystem.Interop' or '%(FileName)' == 'NuGet.VisualStudio' or '%(FileName)' == 'microsoft.visualstudio.designer.interfaces' or '%(FileName)' == 'EnvDTE90' or '%(FileName)' == 'EnvDTE90a' or '%(FileName)' == 'EnvDTE100' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Appid.Interop.10.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Appid.Interop.11.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Appid.Interop.12.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Appid.Interop.14.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Appid.Interop.15.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Appid.Interop.15.2.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Appid.Interop.16.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.9.0' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.10.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.11.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.12.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.12.1.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.12.2.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.14.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.14.1.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.14.2.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.15.0.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.15.3.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.15.5.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.15.6.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.15.7.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.15.8.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.15.9.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Interop.16.DesignTime' or '%(FileName)' == 'Microsoft.Internal.VisualStudio.Shell.Embeddable' or '%(FileName)' == 'Microsoft.VisualStudio.LicenseManagement.Interop.12.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.LicenseManagement.Interop.12.1.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.LicenseManagement.Interop.14.0.DesignTime' or '%(FileName)' == 'Microsoft.VisualStudio.UserNotifications.Interop.12.0.DesignTime' or '%(FileName)' == 'VSLangProj100' or '%(FileName)' == 'VSLangProj110' or '%(FileName)' == 'VSLangProj140' or '%(FileName)' == 'VSLangProj150' or '%(FileName)' == 'VSLangProj157' or '%(FileName)' == 'VSLangProj158' or '%(FileName)' == 'VSLangProj165' "> <EmbedInteropTypes>true</EmbedInteropTypes> </ReferencePath> </ItemGroup> </Target> </Project> |