"Name does not exist" error when switching target platform from AnyCPU to x86

I am creating a WPF project for VS2013 community. I wanted to use CefSharp

in a project, but it can't work in AnyCPU

build config , so I changed it to x86

. After that MainWindow.xaml.cs started throwing The name 'InitializeComponent' does not exist in the current context

and 25 more errors stating that none of my XAML control names were found. When I go to x64

, it's the same. When I return to AnyCPU

, the project compiles and works fine.

So what else do I need to change in the config to make it work?

EDIT: I finally decided to ditch CefSharp and returned the AnyCPU option all over the place. Now VS is giving me the same errors only when building for Release. I have reverted to the latest stable version of the project in Git, but the errors persist. I looked at the Debug / Release settings in Configuration manager

and Project properties

, but everything seems fine. Is there somewhere else to look for Release settings?

+3


source to share





All Articles