Skip to content

Commit ae398d4

Browse files
committed
Try copying test assets after publish instead
1 parent e673e1f commit ae398d4

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,23 @@
3737
<ProjectReference Include="..\testassets\BasicTestApp\BasicTestApp.csproj" />
3838
<ProjectReference Include="..\testassets\Ignitor\Ignitor.csproj" />
3939
<ProjectReference Include="..\testassets\TestServer\Components.TestServer.csproj" />
40-
<Content Include="..\testassets\**\*" Condition="'$(IsHelixJob)' == 'true'" LinkBase="%(RecursiveDir)" />
4140
</ItemGroup>
4241

42+
<Target Name="PublishAssets" AfterTargets="Publish">
43+
<ItemGroup>
44+
<_PublishFiles Include="$(ArtifactsBinDir)AzureAD.WebSite\$(Configuration)\netcoreapp3.0\AzureAD.WebSite.deps.json" />
45+
<_testFiles Include="..\testassets\**\*" />
46+
</ItemGroup>
47+
<Copy
48+
SourceFiles="@(_PublishFiles)"
49+
DestinationFolder="$(PublishDir)"
50+
ContinueOnError="true" />
51+
<Copy
52+
SourceFiles="@(_testFiles)"
53+
DestinationFolder="$(PublishDir)\%(RecursiveDir)"
54+
ContinueOnError="true" />
55+
</Target>
56+
4357
<ItemGroup>
4458
<HelixPreCommand Include="call npm i yarn;call node_modules\.bin\yarn install" />
4559
<HelixContent Include="package.json" />

0 commit comments

Comments
 (0)