Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion eng/sendtohelix.proj
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,24 @@
<_RuntimeInputs Include="$(TestHostRootPath)**/*.dll" />
</ItemGroup>

<!-- Add global tools to runtime -->
<ItemGroup Condition="'$(TargetsNetCoreApp)' == 'true'">
<TestArchiveRuntimeDependencies Include="$(GlobalToolsDir)**\*.*" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: prefix with _?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be used from outside to add additional runtime dependencies therefore no underscore.

</ItemGroup>

<Target Name="CompressRuntimeDirectory"
Inputs="@(_RuntimeInputs)"
Inputs="@(_RuntimeInputs);@(TestArchiveRuntimeDependencies)"
Outputs="$(TestArchiveRuntimeFile)"
Condition="'$(TargetGroup)' != 'AllConfigurations'">

<!-- Copy additional test dependencies. -->
<Copy SourceFiles="@(TestArchiveRuntimeDependencies)"
DestinationFolder="$(TestHostRootPath)\%(RecursiveDir)"
SkipUnchangedFiles="true"
OverwriteReadOnlyFiles="true"
Retries="3"
RetryDelayMilliseconds="300" />

<MakeDir Directories="$(TestArchiveRuntimeRoot)" />
<ZipDirectory
SourceDirectory="$(TestHostRootPath)"
Expand Down