Running "dotnet --info" gives Unexpected Error: System.BadImageFormatException

-1

I'm trying to get a .Net environment running, but most of my dotnet calls in cmd give me this error message:

Unhandled exception. System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (0x8007000B)

I can't event get "dotnet --info" to run without this error. Does anyone know how to fix this?

.net
cmd
sdk
asked on Stack Overflow May 7, 2021 by Raze

1 Answer

0

I did a complete reinstall of everything regarding .NET. So removed runtimes, sdks, etc and even visual studio. That fixed it.

answered on Stack Overflow May 7, 2021 by Raze

User contributions licensed under CC BY-SA 3.0