Skip to content

Commit 8b1bf32

Browse files
committed
Only copy devkit assemblies when doing a real build
1 parent 0ec44d9 commit 8b1bf32

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer.UnitTests/Microsoft.CodeAnalysis.LanguageServer.UnitTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@
3838
</ItemGroup>
3939
</Target>
4040
</Project>
41+

src/VisualStudio/DevKit/Impl/Microsoft.VisualStudio.LanguageServices.DevKit.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@
5555
<Content Include="$(TargetPath)" Pack="true" PackagePath="content" CopyToOutputDirectory="PreserveNewest" />
5656
</ItemGroup>
5757

58-
<!-- Used by LanguageServer.UnitTests project to be able to copy all the content to its own directory -->
59-
<Target Name="GetPackInputs" DependsOnTargets="Build" Returns="@(_Content)">
58+
<!--
59+
Used by LanguageServer.UnitTests project to be able to copy all the content to its own directory.
60+
Only needs to run as part of a real build, so skip it in design time builds to prevent issues.
61+
-->
62+
<Target Name="GetPackInputs" DependsOnTargets="Build" Returns="@(_Content)" Condition="'$(DesignTimeBuild)' != 'true'">
6063
<ItemGroup>
6164
<_Content Include="@(Content)" Condition="'%(Content.Pack)'=='true'"/>
6265
</ItemGroup>

0 commit comments

Comments
 (0)