BadImageFormatException when running generate-load-scripts
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
Description
When running paket.exe generate-load-scripts I get a failure of:
Paket failed with
-> BadImageFormatException: Format of the executable (.exe) or library (.dll) isinvalid.
I have traced the issue (by putting in printfn logging inside DependencyCache.fs - getDllsWithinPackage) to:
Reading Assembly /home/user/.nuget/packages/microsoft.testplatform.testhost/15.5.0/lib/netstandard1.5/x64/msdia140.dll
This is coming from the Microsoft.NET.Test.Sdk package. Note I am on Mono 5.4.0 (EDIT: Tested in on Windows 10 same issue happens there).
Repro steps
Please provide the steps required to reproduce the problem
- Bring in a solution that uses the "Microsoft.NET.Test.Sdk" package.
- Attempt to run "mono .paket/paket.exe generate-load-scripts"
Expected behavior
Load scripts are generated.
Actual behavior
Paket failed with
-> BadImageFormatException: Format of the executable (.exe) or library (.dll) isinvalid.
Known workarounds
None
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in DependencyCache.fs at getDllsWithinPackage and reproduce with a solution using Microsoft.NET.Test.Sdk, running mono .paket/paket.exe generate-load-scripts. Trace handling of msdia140.dll at the reported package path; done means load scripts are generated without BadImageFormatException.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100