Skip to content

Commit db68ce4

Browse files
committed
Add back the _BuildSpmiTestProjectScripts target since I'm not sure why my alternative design wasn't working.
1 parent ccd08a2 commit db68ce4

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/tests/JIT/superpmi/superpmicollect.csproj

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<_SpmiTestProjects Include="..\Performance\CodeQuality\Bytemark\Bytemark.csproj" />
2727
<_SpmiTestProjects Include="..\Methodical\fp\exgen\10w5d_cs_do.csproj" />
2828
<ProjectReference Include="@(_SpmiTestProjects)">
29-
<Targets>Build;CreateExecuteScript</Targets>
29+
<Targets>Build</Targets>
3030
<OutputItemType>_SpmiTest</OutputItemType>
3131
<TargetPath>%(FileName)</TargetPath>
3232
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
@@ -54,13 +54,12 @@
5454
</ItemGroup>
5555

5656
<Target Name="_CopySpmiTestsToOutput" DependsOnTargets="ResolveProjectReferences" BeforeTargets="AssignTargetPaths">
57-
<PropertyGroup>
58-
<_SpmiPathsToCopyPattern>@(_SpmiTest->'%(RootDir)%(Directory)**')</_SpmiPathsToCopyPattern>
59-
</PropertyGroup>
60-
<ItemGroup>
61-
<_SpmiPathsToCopy Include="$(_SpmiPathsToCopyPattern)" />
62-
<_SpmiPathsToCopy DirectoryWithoutSeparator="$([System.IO.Path]::TrimEndingDirectorySeparator('%(Directory)'))" />
63-
</ItemGroup>
64-
<Copy SourceFiles="@(_SpmiPathsToCopy)" DestinationFolder="$([System.IO.Path]::GetDirectoryName('$(OutputPath)'))/$([System.IO.Path]::GetFileName('%(DirectoryWithoutSeparator)'))" SkipUnchangedFiles="True" />
57+
<Copy SourceFiles="@(_SpmiTest)" DestinationFolder="$([System.IO.Path]::GetDirectoryName('$(OutputPath)'))/$([System.IO.Path]::GetFileName('%(FileName)'))" SkipUnchangedFiles="True" />
58+
</Target>
59+
60+
<!-- This target builds the executables and test running scripts for the _SpmiTestProjects
61+
to the output directory of the current project. -->
62+
<Target Name="_BuildSpmiTestProjectScripts" BeforeTargets="CreateExecuteScript">
63+
<MSBuild Projects="@(_SpmiTestProjects)" Targets="CreateExecuteScript" Properties="OutputPath=$(OutputPath)\%(FileName)" />
6564
</Target>
6665
</Project>

0 commit comments

Comments
 (0)