LayoutAwarePage does not exist in namespace VS2012 bug?

前端 未结 10 1108
情深已故
情深已故 2021-02-05 05:41

I\'m trying to get a search contract working on my Win 8 app but after adding a search contract to my project I get the following namespace error:

LayoutAwarePag         


        
相关标签:
10条回答
  • 2021-02-05 06:33

    I had this nagging problem which may have been linked to using the SQLite for Windows RT add on (v3.7.15), and random "Design view is unavailable for x64 and ARM target platforms" errors.

    Regardless, for me, everything works fine now, including the layout aware functionality, once I changed the target platform to x86 for both the project AND solution.

    So right click both the project and solution in Solution Explorer, click Properties, and select an x86 architecture.

    It does make me a bit nervous to not have "Any CPU" as the target, so if anyone knows how to make this work with SQLite and layout aware pages, please chime in.

    0 讨论(0)
  • 2021-02-05 06:37

    For me this infuriating bug was solved by simply changing from Debug Any CPU to x86 and even with the designer open it sprang back into life. Then when you are done you can close and change back to Any CPU and build just fine.

    0 讨论(0)
  • 2021-02-05 06:37

    Close all the xaml file and rebuild the project. If you have errors in the cs files fix them first. For me it was easy as adding public static MainPage Current; to the mainpage.

    0 讨论(0)
  • 2021-02-05 06:39

    I just ran into the same issue.

    Closing VS and deleting the relevant SUO file (in the folder of the solution, may be hidden) worked like a charm.

    0 讨论(0)
提交回复
热议问题