dotnet / BenchmarkDotNet

Powerful .NET library for benchmarking
https://benchmarkdotnet.org
MIT License
10.24k stars 952 forks source link

BenchmarkDotNet does not copy needed assemblies to the run folder (again?) #2555

Closed UbitUmarov closed 3 months ago

UbitUmarov commented 3 months ago

assemblies added on main project file like

 <ItemGroup>
   <Reference Include="OpenMetaverse">
     <HintPath>D:\opensimWork\libomv60\bin\OpenMetaverse.dll</HintPath>
   </Reference>
</ItemGroup>

do get copied to normal output folder, but then do not get copied to the temporary execution folder (with uuid name). the form <none... to copy files to outputs, referred here on older similar issues (#946 for example) also does not work

this was working a few weeks(months?) ago, can't tell if dotnet or BenchmarkDotnet change, but clear the temporary project file does need some fix to make sure this does work again (?)

( using last version of vs2022 on win11, and fails with dotnet6 7 8 or 9preview selected)

timcassell commented 3 months ago

Reference includes are not currently supported (I have a PR open to add support #2508). They should still work as long as you don't return a type from the assembly. You can try with the latest nightly version for both copy files to output and reference include.

timcassell commented 3 months ago

Closing as duplicate of #1197.

UbitUmarov commented 1 month ago

Still no solution for this issue, the mentioned PR just seems to had been forgotten/ignored. Regards,