Edit Project.Tests.csproj file
Project.Tests.csproj
<Target Name="CopyWrapperDLL" BeforeTargets="Build"> <Copy SourceFiles="..\Project\bin\Debug\net8.0\wrapper.dll" DestinationFolder="$(OutDir)" /> </Target>