-
Notifications
You must be signed in to change notification settings - Fork 18
/
VsixExtension.targets
21 lines (19 loc) · 1.12 KB
/
VsixExtension.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Install the dependencies for the LSP server. -->
<Target Name="PackAngularServer" BeforeTargets="PreBuildEvent">
<Message Text="Installing server dependencies..." />
<Exec Command="npm ci" />
<ItemGroup>
<Content Include="node_modules\**\*.*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
</ItemGroup>
</Target>
<!-- As an extension, we need to include the assembly of the LSP protocol (see https://devdiv.visualstudio.com/DevDiv/_wiki/wikis/DevDiv.wiki/9834/Referencing-LanguageServer.Protocol-LanguageServer.Protocol.Extensions-or-LanguageServer.Protocol.Internal). -->
<Target Name="IncludeProtocolAssembly" AfterTargets="GetVsixSourceItems">
<ItemGroup>
<VSIXSourceItem Include="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' == 'Microsoft.VisualStudio.LanguageServer.Protocol'" />
</ItemGroup>
</Target>
</Project>