Mine was solved because I had Platforms in my csproj:
Platforms
csproj
<Platforms>x64;x86</Platforms>
I had to remove it for it to start building correctly.