LayoutAwarePage does not exist in namespace VS2012 bug?

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

提交回复
热议问题