Skip to content

Commit

Permalink
Only copy devkit assemblies when doing a real build
Browse files Browse the repository at this point in the history
  • Loading branch information
dibarbet committed Aug 19, 2024
1 parent 0ec44d9 commit 8b1bf32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@
</ItemGroup>
</Target>
</Project>

Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@
<Content Include="$(TargetPath)" Pack="true" PackagePath="content" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

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

0 comments on commit 8b1bf32

Please sign in to comment.