Cannot open xaml pages in Blend after installing V

2019-07-20 00:12发布

问题:

I am experiencing something weird at the moment. After I installed Visual Studio 2012 Update 2 (CTP), I can no longer open xaml pages properly in Blend designer view.

Looks like everything from other namespaces just cannot be found (see screenshot below)...

Please also note that the whole solution compiles ok if I close up all the xaml pages, and runs well too. But as soon as I open any of the xaml pages, it will throw me those errors...

UPDATE 13 MAY 2013 Just an update, a couple of days ago (after I installed the VS Update 2) the same error came back again. What I did to fix this was I had to change my build name from something else to 'Release' (or 'Debug') and did a 'Clean' and 'Build'.

回答1:

Edited answer:

Updating to Visual Studio 2012 Update 2 should fix the issue: http://microsoft.com/en-au/download/details.aspx?id=38188



回答2:

Check that the platform configurations for all projects linked together in the solution match ("Any CPU" or "x86"). For more info, see:

http://blogs.interknowlogy.com/2013/04/05/blend-for-visual-studio-2012-platform-errors/

This also seems to be a problem with the RTW version of VS2012 Update 2. I experienced this with a solution containing WP8 and Win8 Metro projects.