Skip to content

Commit

Permalink
Merge pull request stride3d#1632 from stride3d/dev/azeno/unit-test-na…
Browse files Browse the repository at this point in the history
…tive-lib-load-fix

[Build] Fixes native libraries not copied to output folder of unit tests
  • Loading branch information
xen2 authored Mar 16, 2023
2 parents dd8ca47 + 93d3020 commit 640440a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sources/targets/Stride.UnitTests.targets
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,13 @@
<Import Project="$(MSBuildThisFileDirectory)Stride.GraphicsApi.Dev.targets"/>
<Import Condition="'$(StrideCompileAssets)' == 'true' And '$(StrideCompilerTargetsEnable)' != 'false'" Project="$(MSBuildThisFileDirectory)..\assets\Stride.Core.Assets.CompilerApp\build\Stride.Core.Assets.CompilerApp.targets"/>

<!-- Ensure native libs get copied to output folder of test projects -->
<Target Name="_StrideSetupNativeLibraries" DependsOnTargets="_StrideBuildDependencies" AfterTargets="ResolveAssemblyReferences">
<ItemGroup>
<None Include="@(_StrideDependencyNativeLib)">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Target>

</Project>

0 comments on commit 640440a

Please sign in to comment.