Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 96ca402

Browse files
committed
Ensure we run on private CLI/SDK and not a newer machine wide one
Also continue on error.
1 parent ab8633a commit 96ca402

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pkg/test/testPackages.proj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@
7979
<DestinationFolder>$(TestDir)</DestinationFolder>
8080
</TestSupportFiles>
8181
</ItemGroup>
82+
83+
<ItemGroup>
84+
<CliEnvironment Include="DOTNET_CLI_TELEMETRY_OPTOUT=1" />
85+
<CliEnvironment Include="DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1" />
86+
<CliEnvironment Include="DOTNET_MULTILEVEL_LOOKUP=0" />
87+
</ItemGroup>
8288

8389
<Target Name="CreateTestDir"
8490
Inputs="@(TestSupportFiles)"
@@ -159,13 +165,13 @@
159165
<Target Name="RestoreProjects"
160166
DependsOnTargets="GenerateProjects">
161167
<Message Importance="High" Text="*** Restoring ***" />
162-
<Exec Command="$(TestRestoreCommand) &quot;$(TestProject)&quot;" StandardOutputImportance="High" />
168+
<Exec Command="$(TestRestoreCommand) &quot;$(TestProject)&quot;" EnvironmentVariables="@(CliEnvironment)" ContinueOnError="ErrorAndContinue" StandardOutputImportance="High" />
163169
</Target>
164170

165171
<Target Name="BuildProjects"
166172
DependsOnTargets="RestoreProjects">
167173
<Message Importance="High" Text="*** Testing ***" />
168-
<Exec Command="$(TestBuildCommand) &quot;$(TestProject)&quot; /p:TestPackages=%(SupportedPackage.Identity)" StandardOutputImportance="High" />
174+
<Exec Command="$(TestBuildCommand) &quot;$(TestProject)&quot; /p:TestPackages=%(SupportedPackage.Identity)" EnvironmentVariables="@(CliEnvironment)" ContinueOnError="ErrorAndContinue" StandardOutputImportance="High" />
169175
</Target>
170176

171177
<Target Name="Build" DependsOnTargets="BuildProjects" />

0 commit comments

Comments
 (0)