LayoutAwarePage does not exist in namespace VS2012 bug?

前端 未结 10 1106
情深已故
情深已故 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:21

    I removed the reference to the Bing Maps SDK and set the Platform Target back to Any CPU and it solved the problem for me.

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

    Please close all tabs in VS if opened.

    Then Click Build-> clean solution

    next click build->rebuild solution

    Now open the xaml file.

    Hope it will work

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

    You must add a reference to the WinRTXamlToolkit: From VS2012 Express

    1. Right click on the "References" item;
    2. Select "Manage NuGet Packages...";
    3. In the menu on the left in the new window select "Online" then "Windows & Packages";
    4. Search for the library named "WinRTXamlToolkit", select it then click on the "Install" button.
    0 讨论(0)
  • 2021-02-05 06:29

    I got a long list of similar bugs when compiling an UWP app. Hidden among them however, were several genuine compile errors. When I fixed the genuine errors, the missing references also disappeared.

    So, fix any other compile errors first, and see if these "missing in namespace" errors then disappear.

    EDIT: My colleague also had this bug in VS 2017. Cleaning the solution via the Build menu didn't work. Right-clicking on the projects in the Solution Explorer and cleaning each one, then re-building, worked.

    EDIT2: Just had this problem again. 22 "missing in namespace" errors.
    I had deleted a button handler from a ViewModel, but forgotten to delete the button from the XAML code. When I fixed this genuine error, the 22 "missing in namespace" errors also disappeared.

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

    I just unloaded the project and reloaded it in VS'2012 and it started working. No deleting anything necessary.

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

    I also have the same issue in Visual Studio 2012 while adding new basic page in Xaml.I just run my application and the error removed automatically.

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