Skip to content

Commit

Permalink
Merge pull request #74812 from dibarbet/fix_design_time_failure
Browse files Browse the repository at this point in the history
Only copy devkit assemblies for unit tests when doing a real build
  • Loading branch information
dibarbet authored Aug 20, 2024
2 parents 726aeac + 8b1bf32 commit f318971
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 f318971

Please sign in to comment.