I have a Visual Studio (2013) C# project that builds fine on AnyCPU
is failing to build when I change the platform target to x64
. This is on .NET 2. The error I get is
An attempt was made to load an assembly with an incorrect format: C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll.
I'm struggling to find what I should do here. I have tried re-adding Sustem.Web and resources I have read indicate that this reference should work for either platform (I presume it is itself AnyCPU
). I feel like I am missing something very obvious here...