Repository navigation
Expand file tree
/
Copy pathUnitTests.proj
More file actions
335 lines (284 loc) · 22 KB
/
Copy pathUnitTests.proj
File metadata and controls
335 lines (284 loc) · 22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
<Project Sdk="Microsoft.DotNet.Helix.Sdk">
<PropertyGroup>
<HelixType>test/product/</HelixType>
<Creator Condition="'$(BUILD_BUILDNUMBER)' != '' and '$(HelixAccessToken)' == ''">sdk-dev</Creator>
<IncludeDotNetCli>false</IncludeDotNetCli>
<EnableAzurePipelinesReporter Condition="'$(BUILD_BUILDNUMBER)' != ''">true</EnableAzurePipelinesReporter>
<!-- Helix SDK specifies the default run name to be: $(TestRunNamePrefix)$(_CurrentTargetQueue)$(TestRunNameSuffix) -->
<TestRunNamePrefix Condition="'$(AGENT_JOBNAME)' != ''">$(AGENT_JOBNAME) run on </TestRunNamePrefix>
<TestRunNameSuffix Condition="'$(SYSTEM_JOBATTEMPT)' != ''"> (attempt $(SYSTEM_JOBATTEMPT))</TestRunNameSuffix>
<TestWorkItemTimeout>01:00:00</TestWorkItemTimeout>
</PropertyGroup>
<ItemGroup>
<PackageReference Remove="AwesomeAssertions" />
</ItemGroup>
<ItemGroup>
<SDKCustomTestProject Include="**\*.Tests.csproj" Exclude="**\*.AoT.Tests.csproj;TestAssets\**\*.Tests.csproj" />
<SDKCustomTestProject Include="$(RepoRoot)src\Microsoft.CodeAnalysis.NetAnalyzers\tests\**\*.*Tests.csproj" />
<!-- Projects suffixed with UnitTests or IntegrationTests are not matched by *.Tests.csproj above, so include them with a separate glob. -->
<SDKCustomTestProject Include="**\*UnitTests.csproj;**\*IntegrationTests.csproj" Exclude="TestAssets\**\*" />
<!-- Temporarily disabled on macOS due to https://github.com/dotnet/runtime/issues/131944 -->
<SDKCustomTestProject Remove="dotnet-watch.Tests\dotnet-watch.Tests.csproj" Condition="'$(TargetOS)' == 'osx'" />
<!-- Don't run MSI installation tests in Helix / CI -->
<SDKCustomTestProject Remove="dotnet-MsiInstallation.Tests\**\*" />
<!-- dotnet-format unit tests are disabled; tracked by https://github.com/dotnet/sdk/issues/54249 -->
<SDKCustomTestProject Remove="dotnet-format.UnitTests\dotnet-format.UnitTests.csproj" />
<!-- dotnet-format integration tests: one Helix work item per test class.
PartitionByClass dynamically discovers classes in the assembly and creates
one shard per class. Adding a new test class automatically creates a new shard.
These tests are expensive and therefore only run on Linux x64. -->
<SDKCustomTestProject Remove="dotnet-format.IntegrationTests\dotnet-format.IntegrationTests.csproj" />
<SDKCustomTestProject Include="dotnet-format.IntegrationTests\dotnet-format.IntegrationTests.csproj"
PartitionByClass="true"
Condition="'$(TargetOS)' == 'linux' and '$(TargetArchitecture)' == 'x64'" />
<!-- Filter out .NET Framework only test projects and add them manually. -->
<SDKCustomTestProject Remove="Microsoft.DotNet.MSBuildSdkResolver.Tests\Microsoft.DotNet.MSBuildSdkResolver.Tests.csproj" />
</ItemGroup>
<!-- Run the compatibility-tooling integration tests under desktop MSBuild whenever the
FullFramework leg runs (it's part of every PR build, so the Runtime="NET" taskhost path
is exercised on every PR). The default *IntegrationTests glob above already adds these
projects under .NETCoreApp on every leg; this entry only adds the additional
net472/desktop-MSBuild row. ApiDiff has no MSBuild task so it runs only under .NETCoreApp.
This row is conditioned on TestFullMSBuild=true because:
- net472 binaries can't be loaded on Linux/macOS, so scheduling a net472 work item
to those queues fails at chmod+x time on the missing native exe.
- The FullFramework leg sets TestFullMSBuild=true and uses a Windows queue. -->
<ItemGroup Condition="'$(TestFullMSBuild)' == 'true'">
<SDKCustomTestProject Include="
Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.IntegrationTests\Microsoft.DotNet.ApiCompat.IntegrationTests.csproj;
Compatibility\GenAPI\Microsoft.DotNet.GenAPI.IntegrationTests\Microsoft.DotNet.GenAPI.IntegrationTests.csproj"
TargetFramework="net472"
RuntimeTargetFramework="net472" />
</ItemGroup>
<!-- When TestFullMSBuild=true, include the .NET Framework tests. .NETCoreApp tests are also executed
as that validates running tests with desktop msbuild. -->
<ItemGroup Condition="'$(TestFullMSBuild)' == 'true'">
<SDKCustomTestProject Include="
Microsoft.DotNet.MSBuildSdkResolver.Tests\Microsoft.DotNet.MSBuildSdkResolver.Tests.csproj;
Microsoft.DotNet.TemplateLocator.Tests\Microsoft.DotNet.TemplateLocator.Tests.csproj;
Microsoft.NET.Sdk.Publish.Tasks.Tests\Microsoft.NET.Sdk.Publish.Tasks.Tests.csproj;
Microsoft.NET.Sdk.WorkloadManifestReader.Tests\Microsoft.NET.Sdk.WorkloadManifestReader.Tests.csproj;
Microsoft.Win32.Msi.Tests\Microsoft.Win32.Msi.Tests.csproj"
TargetFramework="net472"
RuntimeTargetFramework="net472" />
</ItemGroup>
<ItemGroup Condition="'$(RunAoTTests)' == 'true'">
<SDKCustomTestProject Remove="@(SDKCustomTestProject)" />
<SDKCustomTestProject Include="**\*.AoT.Tests.csproj" />
</ItemGroup>
<!-- Helix work-item partitioning configuration.
effective limit = BaseMethodLimit × MethodLimitMultiplier (per-project).
Targeting ~5 minutes per work item across all platforms. -->
<PropertyGroup>
<BaseMethodLimit Condition="'$(TestFullMSBuild)' == 'true'">64</BaseMethodLimit>
<BaseMethodLimit Condition="'$(TargetOS)' == 'osx' and '$(TargetArchitecture)' == 'arm64'">128</BaseMethodLimit>
<BaseMethodLimit Condition="'$(BaseMethodLimit)' == ''">32</BaseMethodLimit>
</PropertyGroup>
<!-- Consolidate Helix shards for assemblies with very short test durations.
MethodLimitMultiplier increases the methods-per-shard threshold, producing
fewer (but larger) work items and reducing per-item overhead on Helix queues. -->
<ItemGroup>
<SDKCustomTestProject Update="$(RepoRoot)src\Microsoft.CodeAnalysis.NetAnalyzers\tests\**\*.*Tests.csproj">
<MethodLimitMultiplier>20</MethodLimitMultiplier>
</SDKCustomTestProject>
<SDKCustomTestProject Update="TemplateEngine\**\*.csproj;**\Microsoft.TemplateEngine.Cli.UnitTests.csproj">
<MethodLimitMultiplier>20</MethodLimitMultiplier>
</SDKCustomTestProject>
<SDKCustomTestProject Update="**\Microsoft.DotNet.ApiCompatibility.Tests.csproj;**\Microsoft.DotNet.ApiDiff.Tests.csproj;**\Microsoft.DotNet.ApiSymbolExtensions.Tests.csproj;**\Microsoft.DotNet.GenAPI.Tests.csproj">
<MethodLimitMultiplier>10</MethodLimitMultiplier>
</SDKCustomTestProject>
<!-- dotnet-aot.Tests compiles the entire shared CLI parser (Parser, CliSchema, all command
parsers via AotSourceFiles.props) into its test assembly, so the method-based scheduler
counts hundreds of non-test types and over-shards the assembly. Some shards then contain
only non-test types (e.g. CliSchema's nested records), which run zero tests and fail under
MTP (exit code 8). Consolidate into a single work item; the real test count is small. -->
<SDKCustomTestProject Update="**\dotnet-aot.Tests.csproj">
<MethodLimitMultiplier>20</MethodLimitMultiplier>
</SDKCustomTestProject>
<!-- These assemblies now parallelize within each process. Use fewer, larger shards to avoid
paying the per-work-item payload and environment setup cost for mostly sub-minute shards,
while retaining multiple machines for their longest integration-test tails. -->
<SDKCustomTestProject Update="**\dotnet.Tests.csproj;**\Microsoft.NET.Sdk.StaticWebAssets.Tests.csproj">
<MethodLimitMultiplier>4</MethodLimitMultiplier>
</SDKCustomTestProject>
<SDKCustomTestProject Update="**\Microsoft.NET.Build.Tests.csproj">
<MethodLimitMultiplier>2</MethodLimitMultiplier>
</SDKCustomTestProject>
<!-- Only this class invokes TypeScript tooling. Installing Node in every work item adds
substantial setup time, especially on Windows agents where Node is not preinstalled. -->
<SDKCustomTestProject Update="**\Microsoft.NET.Sdk.StaticWebAssets.Tests.csproj">
<NodeRequiredTestClass>Microsoft.NET.Sdk.StaticWebAssets.Tests.TypeScriptIntegrationTest</NodeRequiredTestClass>
<NodeVersion>22.22.3</NodeVersion>
</SDKCustomTestProject>
<!-- EndToEnd.Tests needs installer archives which are excluded from the shared
correlation payload to reduce download/unpack overhead for all other work items.
AdditionalPayloadDir: directory whose files are included in the per-item payload.
AdditionalPayloadDestination: relative path under the correlation payload root
where files are copied at runtime so the test's expected paths resolve correctly. -->
<SDKCustomTestProject Update="EndToEnd.Tests\EndToEnd.Tests.csproj">
<AdditionalPayloadDir>$(RepoRoot)artifacts\tmp\HelixInstallerArchives</AdditionalPayloadDir>
<AdditionalPayloadDestination>d/.nuget</AdditionalPayloadDestination>
</SDKCustomTestProject>
</ItemGroup>
<ItemGroup Condition=" '$(CustomHelixTargetQueue)' != '' ">
<HelixTargetQueue Include="$(CustomHelixTargetQueue)" />
</ItemGroup>
<Import Project="ConditionalTests.targets" />
<Import Project="test-runner\TestRunner.targets" />
<!-- need to be a target in order to have IsPosixShell available -->
<Target Name="CopyHelixFiles" AfterTargets="Publish">
<PropertyGroup>
<HelixPayloadOnHost>$(RepoRoot)artifacts\tmp\Helixpayload</HelixPayloadOnHost>
<HelixNuGetPayload>$(RepoRoot)artifacts\tmp\HelixNuGetPayload</HelixNuGetPayload>
<HelixInstallerArchives>$(RepoRoot)artifacts\tmp\HelixInstallerArchives</HelixInstallerArchives>
<HelixNuGetConfig>$(RepoRoot)artifacts\tmp\HelixNuGetConfig\NuGet.config</HelixNuGetConfig>
</PropertyGroup>
<ItemGroup>
<BuiltSdks Include="$(RepoRoot)artifacts\bin\$(Configuration)\Sdks\**\*.*" />
<!-- All the following files are just to get full framework msbuild while avoid to duplicated arcade logic by copying
arcade and run it -->
<Engfolder Include="$(RepoRoot)eng\**\*.*" />
<DotToolsFolder Include="$(RepoRoot).tools\**\*.*" />
<GlobalJson Include="$(RepoRoot)global.json" />
<!-- Get full framework msbuild end -->
<!-- include .dotnet folder. So there is no extra first run experience run during the test -->
<DotnetCliHome Include="$(TestLayoutDir).dotnet\**\*.*" />
<Testpackages Include="$(TestLayoutDir)testpackages\**\*.*" />
<!-- include Container artifacts for running test in Helix -->
<ContainerFiles Include="$(TestLayoutDir)Container\**\*.*" />
<LockFiles Include="Microsoft.NET.Build.Tasks.Tests\LockFiles\**\*.*" />
<AssetFiles Include="TestAssets\**\*.*" />
<!-- Include the template_feed directory from the repo root so tests that reference RepoTemplatePackages work in Helix. -->
<TemplateFeedFiles Include="$(RepoRoot)template_feed\**\*.*" />
<!-- Include the TemplateEngine sample templates so tests that reference SampleTemplatesLocation work in Helix. -->
<TemplateSampleFiles Include="$(RepoRoot)documentation\TemplateEngine\Samples\**\*.*" />
<!-- Files in testExecutionDirectory to prevent environment interference -->
<TestExecutionDirectoryFiles Include="$(HelixNuGetConfig)" />
<TestExecutionDirectoryFiles Include="$(TestLayoutDir)Directory.Build.props" />
<TestExecutionDirectoryFiles Include="$(TestLayoutDir)Directory.Build.targets" />
<TestExecutionDirectoryFiles Include="$(RepoRoot)testAsset.props" />
<TestExecutionDirectoryFiles Include="$(RepoRoot)eng\Versions.props">
<DestinationFolder>eng/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)eng\Version.Details.props">
<DestinationFolder>eng/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)eng\ManualVersions.props">
<DestinationFolder>eng/</DestinationFolder>
</TestExecutionDirectoryFiles>
<!-- Infrastructure test files: conditional test scopes script and targets -->
<TestExecutionDirectoryFiles Include="$(RepoRoot)scripts\EvaluateConditionalTestScopes.cs">
<DestinationFolder>scripts/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)test\ConditionalTests.targets">
<DestinationFolder>test/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)src\Layout\redist\targets\BundledTemplates.targets">
<DestinationFolder>Layout/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)src\Layout\redist\targets\BundledManifests.targets">
<DestinationFolder>Layout/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)src\Layout\redist\targets\GenerateLayout.targets;$(RepoRoot)src\Layout\redist\targets\GenerateBundledVersions.targets;$(RepoRoot)src\Layout\redist\msbuild-entitlements.plist;$(RepoRoot)src\Layout\redist\roslyn-entitlements.plist">
<DestinationFolder>Layout/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)src\Layout\redist\targets\GenerateInstallerLayout.targets;$(RepoRoot)src\Layout\redist\dnx;$(RepoRoot)src\Layout\redist\dnx.cmd">
<DestinationFolder>Layout/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)src\Workloads\Manifests\Directory.Build.targets;$(RepoRoot)src\Workloads\Manifests\manifest-packages.csproj">
<DestinationFolder>Layout/Workloads/Manifests/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)src\Layout\redist\targets\GenerateMSIs.targets">
<DestinationFolder>Layout/</DestinationFolder>
</TestExecutionDirectoryFiles>
<TestExecutionDirectoryFiles Include="$(RepoRoot)src\Layout\pkg\windows\msis\templates\templates.wixproj">
<DestinationFolder>Layout/</DestinationFolder>
</TestExecutionDirectoryFiles>
<FilesInHelixRoot Include="$(TestLayoutDir)\NuGet.config" />
<FilesInHelixRoot Condition="$([MSBuild]::IsOSPlatform(`Windows`))" Include="$(RepoRoot)build\SetupHelixEnvironment.cmd" />
<FilesInHelixRoot Condition="$([MSBuild]::IsOSPlatform(`Windows`))" Include="$(RepoRoot)build\InstallNode.ps1" />
<FilesInHelixRoot Condition=" '$([MSBuild]::IsOSPlatform(`Windows`))' == 'false' " Include="$(RepoRoot)build\SetupHelixEnvironment.sh" />
<FilesInHelixRoot Condition=" '$([MSBuild]::IsOSPlatform(`Windows`))' == 'false' " Include="$(RepoRoot)build\installnode.sh" />
<FilesInHelixRoot Condition=" '$([MSBuild]::IsOSPlatform(`Windows`))' == 'false' " Include="$(RepoRoot)build\helix-debug-entitlements.plist" />
</ItemGroup>
<PrepareHelixNuGetConfig
SourceFile="$(TestLayoutDir)NuGet.config"
DestinationFile="$(HelixNuGetConfig)" />
<!-- Stage nupkgs (excluding installer archives) for the shared correlation payload.
This avoids downloading large SDK archives on every work item. -->
<ItemGroup>
<_ShippingNuGetPackages Include="$(RepoRoot)artifacts\packages\$(Configuration)\Shipping\**\*.nupkg" />
<_InstallerArchives Include="$(RepoRoot)artifacts\packages\$(Configuration)\Shipping\**\*.zip;
$(RepoRoot)artifacts\packages\$(Configuration)\Shipping\**\*.tar.gz;
$(RepoRoot)artifacts\packages\$(Configuration)\Shipping\**\*.rpm;
$(RepoRoot)artifacts\packages\$(Configuration)\Shipping\**\*.deb;
$(RepoRoot)artifacts\packages\$(Configuration)\Shipping\**\*.exe;
$(RepoRoot)artifacts\packages\$(Configuration)\Shipping\**\*.pkg" />
</ItemGroup>
<Copy SourceFiles="@(_ShippingNuGetPackages)" DestinationFiles="@(_ShippingNuGetPackages->'$(HelixNuGetPayload)\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(_InstallerArchives)" DestinationFiles="@(_InstallerArchives->'$(HelixInstallerArchives)\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(Engfolder)" DestinationFiles="@(Engfolder->'$(HelixPayloadOnHost)\eng\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(GlobalJson)" DestinationFiles="@(GlobalJson->'$(HelixPayloadOnHost)\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(DotToolsFolder)" DestinationFiles="@(DotToolsFolder->'$(HelixPayloadOnHost)\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(FilesInHelixRoot)" DestinationFiles="@(FilesInHelixRoot->'$(HelixPayloadOnHost)\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(TestExecutionDirectoryFiles)" DestinationFiles="@(TestExecutionDirectoryFiles->'$(HelixPayloadOnHost)\TestExecutionDirectoryFiles\%(RecursiveDir)%(DestinationFolder)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(DotnetCliHome)" DestinationFiles="@(DotnetCliHome->'$(HelixPayloadOnHost)\TestExecutionDirectoryFiles\.dotnet\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(Testpackages)" DestinationFiles="@(Testpackages->'$(HelixPayloadOnHost)\TestExecutionDirectoryFiles\Testpackages\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(ContainerFiles)" DestinationFiles="@(ContainerFiles->'$(HelixPayloadOnHost)\TestExecutionDirectoryFiles\Container\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(LockFiles)" DestinationFiles="@(LockFiles->'$(HelixPayloadOnHost)\TestExecutionDirectoryFiles\LockFiles\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(AssetFiles)" DestinationFiles="@(AssetFiles->'$(HelixPayloadOnHost)\TestExecutionDirectoryFiles\TestAssets\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(TemplateFeedFiles)" DestinationFiles="@(TemplateFeedFiles->'$(HelixPayloadOnHost)\TestExecutionDirectoryFiles\template_feed\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(TemplateSampleFiles)" DestinationFiles="@(TemplateSampleFiles->'$(HelixPayloadOnHost)\TestExecutionDirectoryFiles\TemplateSamples\%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
<Target Name="AppendHelixPreCommand" BeforeTargets="CoreTest" DependsOnTargets="CopyHelixFiles">
<PropertyGroup>
<HelixPreCommands Condition="!$(IsPosixShell)">call %HELIX_CORRELATION_PAYLOAD%\t\SetupHelixEnvironment.cmd $(TestFullMSBuild);$(HelixPreCommands)</HelixPreCommands>
<HelixPreCommands Condition="$(IsPosixShell)">. $HELIX_CORRELATION_PAYLOAD/t/SetupHelixEnvironment.sh;$(HelixPreCommands)</HelixPreCommands>
<!-- Install wasm-tools workload on Helix for AoT tests (see: https://github.com/dotnet/sdk/issues/22655).
This must happen on Helix (not the build machine) because cross-arch builds produce a dotnet binary
that cannot execute on the build machine's architecture.
Point to the test NuGet.config so the workload packs can be resolved from the configured feeds. -->
<HelixPreCommands Condition="'$(RunAoTTests)' == 'true' and !$(IsPosixShell)">$(HelixPreCommands);%DOTNET_ROOT%\dotnet workload install wasm-tools --skip-manifest-update --configfile %TestExecutionDirectory%\NuGet.config</HelixPreCommands>
<HelixPreCommands Condition="'$(RunAoTTests)' == 'true' and $(IsPosixShell)">$(HelixPreCommands);$DOTNET_ROOT/dotnet workload install wasm-tools --skip-manifest-update --configfile $TestExecutionDirectory/NuGet.config</HelixPreCommands>
<!-- Upload any crash/hang dumps to the work item so they are retained. Matches both the MTP
crash/hang dump extensions (*_crash.dmp / *_hang.dmp) and the legacy VSTest blame-hang
dumps (*hangdump.dmp). -->
<HelixPostCommands Condition="!$(IsPosixShell)">PowerShell -ExecutionPolicy ByPass "Get-ChildItem -Recurse -File -Filter '*.dmp' | Copy-Item -Destination $env:HELIX_WORKITEM_UPLOAD_ROOT";$(HelixPostCommands)</HelixPostCommands>
<HelixPostCommands Condition="$(IsPosixShell)">find "$HELIX_WORKITEM_UPLOAD_ROOT/../../.." -name '*.dmp' -print0 | xargs -0 -I@ cp @ "$HELIX_WORKITEM_UPLOAD_ROOT";$(HelixPostCommands)</HelixPostCommands>
<TestDotnetVersion>$(Version)</TestDotnetVersion>
<MSBuildSdkResolverDir>$(RepoRoot)artifacts\bin\Microsoft.DotNet.MSBuildSdkResolver</MSBuildSdkResolverDir>
<HelixStage0Targz>$(RepoRoot)artifacts\tmp\HelixStage0.tar.gz</HelixStage0Targz>
<MicrosoftNETBuildExtensions>$(RepoRoot)artifacts\bin\$(Configuration)\Sdks\Microsoft.NET.Build.Extensions</MicrosoftNETBuildExtensions>
</PropertyGroup>
<TarGzFileCreateFromDirectory
Condition=" '$([MSBuild]::IsOSPlatform(`Windows`))' == 'false' "
SourceDirectory="$(TestHostDotNetRoot)"
DestinationArchive="$(HelixStage0Targz)"
OverwriteDestination="true" />
<ItemGroup>
<HelixCorrelationPayload Include="$(HelixPayloadOnHost)">
<Destination>t</Destination>
</HelixCorrelationPayload>
<HelixCorrelationPayload Condition=" '$([MSBuild]::IsOSPlatform(`Windows`))' == 'false' " Include="$(HelixStage0Targz)">
<Destination>d</Destination>
</HelixCorrelationPayload>
<HelixCorrelationPayload Condition="$([MSBuild]::IsOSPlatform(`Windows`))" Include="$(TestHostDotNetRoot)">
<Destination>d</Destination>
</HelixCorrelationPayload>
<HelixCorrelationPayload Include="$(MicrosoftNETBuildExtensions)">
<Destination>ex</Destination>
</HelixCorrelationPayload>
<HelixCorrelationPayload Include="$(MSBuildSdkResolverDir)">
<Destination>r</Destination>
</HelixCorrelationPayload>
<HelixCorrelationPayload Include="$(HelixNuGetPayload)">
<Destination>d/.nuget</Destination>
</HelixCorrelationPayload>
</ItemGroup>
</Target>
<Target Name="CreateLocalHelixTestLayout" DependsOnTargets="AppendHelixPreCommand">
<CreateLocalHelixTestLayout
HelixCorrelationPayload="@(HelixCorrelationPayload)"
TestOutputDirectory="$(RepoRoot)artifacts\bin\localHelixTestLayout" />
</Target>
</Project>