[Build] Fixes native libraries not copied to output folder of unit tests

For example the Stride.Navigation.Tests didn't contain the necessary libnavigation.dll in its runtimes folder.
This commit is contained in:
Elias Holzer 2023-03-16 19:07:57 +01:00
Родитель dd8ca47bb6
Коммит 93d30204eb
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -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>