You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the package Microsoft.TestPlatform.TestHost is a dependency in paket.dependencies file and it is tried to create a load script for that dependency paket fails with a BadImageFormatException.
Paket tries on multiple occasions to load .dll files of a package. Some are guarded by try…with, but some are not. Load Script generation hits the latter one and breaks if it tries to load native dlls from (for instance) the Microsoft.TestPlatform.TestHost package.
Known workarounds
Do not generate Load Scripts for those packages.
The text was updated successfully, but these errors were encountered:
Description
When the package
Microsoft.TestPlatform.TestHost
is a dependency inpaket.dependencies
file and it is tried to create a load script for that dependency paket fails with aBadImageFormatException
.Repro steps
See a repro repo here: https://github.com/ChrSteinert/Paket-3097
Do a
paket install
&&paket generate-load-scripts
do trigger the bug.Expected behavior
Paket ignores native dll files.
Actual behavior
Paket tries on multiple occasions to load
.dll
files of a package. Some are guarded bytry…with
, but some are not. Load Script generation hits the latter one and breaks if it tries to load native dlls from (for instance) theMicrosoft.TestPlatform.TestHost
package.Known workarounds
Do not generate Load Scripts for those packages.
The text was updated successfully, but these errors were encountered: