|
25 | 25 | <IncludeAssemblyInVSIXContainer>false</IncludeAssemblyInVSIXContainer>
|
26 | 26 | <IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
|
27 | 27 | <IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment>
|
| 28 | + <DefineConstants Condition="'$(IncludeRoslynDeps)' == 'true'">$(DefineConstants);INCLUDE_ROSLYN_DEPS</DefineConstants> |
28 | 29 | </PropertyGroup>
|
29 | 30 |
|
30 | 31 | <ItemGroup>
|
|
42 | 43 | <PackageReference Include="Microsoft.VisualStudio.Shell.15.0" Version="$(MicrosoftVisualStudioShell150PackageVersion)" />
|
43 | 44 | </ItemGroup>
|
44 | 45 |
|
| 46 | + <!-- Reference the LSP protocol dlls so that we can include them in the code base and output them with the VSIX. --> |
45 | 47 | <ItemGroup>
|
46 |
| - <!-- Reference the Roslyn dependencies so that Preview builds work --> |
| 48 | + <PackageReference Include="Microsoft.VisualStudio.LanguageServer.Protocol" Version="$(MicrosoftVisualStudioLanguageServerProtocolPackageVersion)" /> |
| 49 | + <PackageReference Include="Microsoft.VisualStudio.LanguageServer.Protocol.Extensions" Version="$(MicrosoftVisualStudioLanguageServerProtocolExtensionsPackageVersion)" /> |
| 50 | + <PackageReference Include="Microsoft.VisualStudio.LanguageServer.Protocol.Internal" Version="$(MicrosoftVisualStudioLanguageServerProtocolInternalPackageVersion)" /> |
| 51 | + </ItemGroup> |
| 52 | + |
| 53 | + <ItemGroup> |
| 54 | + <VSIXSourceItem Include="$(OutputPath)Microsoft.VisualStudio.LanguageServer.Protocol.dll" /> |
| 55 | + <VSIXSourceItem Include="$(OutputPath)Microsoft.VisualStudio.LanguageServer.Protocol.Extensions.dll" /> |
| 56 | + <VSIXSourceItem Include="$(OutputPath)Microsoft.VisualStudio.LanguageServer.Protocol.Internal.dll" /> |
| 57 | + </ItemGroup> |
| 58 | + |
| 59 | + <!-- Reference the Roslyn dependencies so that Preview builds work --> |
| 60 | + <ItemGroup Condition="'$(IncludeRoslynDeps)' == 'true'"> |
47 | 61 | <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Features" Version="$(Tooling_MicrosoftCodeAnalysisCSharpFeaturesPackageVersion)" />
|
48 | 62 | <PackageReference Include="Microsoft.CodeAnalysis.EditorFeatures" Version="$(RoslynPackageVersion)" />
|
49 | 63 | <PackageReference Include="Microsoft.CodeAnalysis.EditorFeatures.Wpf" Version="$(RoslynPackageVersion)" />
|
50 | 64 | <PackageReference Include="Microsoft.CodeAnalysis.ExternalAccess.Razor" Version="$(Tooling_MicrosoftCodeAnalysisExternalAccessRazorPackageVersion)" />
|
51 | 65 | <PackageReference Include="Microsoft.CodeAnalysis.ExternalAccess.FSharp" Version="$(Tooling_MicrosoftCodeAnalysisExternalAccessRazorPackageVersion)" />
|
52 | 66 | <PackageReference Include="Microsoft.VisualStudio.LanguageServices" Version="$(Tooling_MicrosoftVisualStudioLanguageServicesPackageVersion)" />
|
53 |
| - |
54 |
| - <!-- Reference the LSP protocol dlls so that we can include them in the code base and output them with the VSIX. --> |
55 |
| - <PackageReference Include="Microsoft.VisualStudio.LanguageServer.Protocol" Version="$(MicrosoftVisualStudioLanguageServerProtocolPackageVersion)" /> |
56 |
| - <PackageReference Include="Microsoft.VisualStudio.LanguageServer.Protocol.Extensions" Version="$(MicrosoftVisualStudioLanguageServerProtocolExtensionsPackageVersion)" /> |
57 |
| - <PackageReference Include="Microsoft.VisualStudio.LanguageServer.Protocol.Internal" Version="$(MicrosoftVisualStudioLanguageServerProtocolInternalPackageVersion)" /> |
58 | 67 | </ItemGroup>
|
59 | 68 |
|
60 |
| - <ItemGroup> |
| 69 | + <ItemGroup Condition="'$(IncludeRoslynDeps)' == 'true'"> |
61 | 70 | <VSIXSourceItem Include="$(OutputPath)Microsoft.CodeAnalysis.dll" />
|
62 | 71 | <VSIXSourceItem Include="$(OutputPath)Microsoft.CodeAnalysis.CSharp.dll" />
|
63 | 72 | <VSIXSourceItem Include="$(OutputPath)Microsoft.CodeAnalysis.CSharp.Features.dll" />
|
|
72 | 81 | <VSIXSourceItem Include="$(OutputPath)Microsoft.CodeAnalysis.Remote.Workspaces.dll" />
|
73 | 82 | <VSIXSourceItem Include="$(OutputPath)Microsoft.CodeAnalysis.Workspaces.dll" />
|
74 | 83 | <VSIXSourceItem Include="$(OutputPath)Microsoft.VisualStudio.LanguageServices.dll" />
|
75 |
| - <VSIXSourceItem Include="$(OutputPath)Microsoft.VisualStudio.LanguageServer.Protocol.dll" /> |
76 |
| - <VSIXSourceItem Include="$(OutputPath)Microsoft.VisualStudio.LanguageServer.Protocol.Extensions.dll" /> |
77 |
| - <VSIXSourceItem Include="$(OutputPath)Microsoft.VisualStudio.LanguageServer.Protocol.Internal.dll" /> |
78 | 84 | </ItemGroup>
|
79 | 85 | </Project>
|
0 commit comments