Skip to content

Commit 68cedfa

Browse files
committed
Fix iOS and Android test execution
Cause all but desktop targets to reference dotnet execution assemble so that it gets packaged up with the mobile app, provided they include this line in their entrypoint method: this.AddExecutionAssembly(typeof(SkippableFactDiscoverer).Assembly);
1 parent 0df8c6a commit 68cedfa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Xunit.SkippableFact.NuGet/Xunit.SkippableFact.NuGet.nuproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,15 @@
5757
</Target>
5858
<Target Name="MovePlatformExecutionAssemblies" AfterTargets="GetPackageFiles" DependsOnTargets="GetPackageFiles">
5959
<ItemGroup>
60+
<!-- MOVE desktop execution assembly to the build folder. -->
6061
<PackageFile>
6162
<TargetPath Condition=" '%(FileName)' == 'xunit.skippablefact.desktop' ">build\%(FileName)%(Extension)</TargetPath>
62-
<TargetPath Condition=" '%(FileName)' == 'xunit.skippablefact.dotnet' ">build\%(FileName)%(Extension)</TargetPath>
63+
</PackageFile>
64+
65+
<!-- COPY dotnet assembly to the build folder as well. -->
66+
<PackageFile Include="@(PackageFile)"
67+
Condition=" '%(FileName)' == 'xunit.skippablefact.dotnet' ">
68+
<TargetPath>build\%(FileName)%(Extension)</TargetPath>
6369
</PackageFile>
6470
</ItemGroup>
6571
</Target>

0 commit comments

Comments
 (0)