LayoutAwarePage does not exist in namespace VS2012 bug?
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:
LayoutAwarePage does not exist in namespace App1.Common.
I do have the correct namespace declarations in the xaml:
and the LayoutAwarePage is in the correct namespace App1.Common
Restarting VS2012 or doing a delete and rebuild doesn't help. To replicate this problem try the following:
1) create new blank metro app
2) add references to Visual C++ runtime
3) add a search contract to the project (click Yes to automatically add other stuff like LayoutAwarePage etc)
4) rebuild and open SearchResultsPage1.xaml
If you follow the above steps you should see the error and also note that the SearchResultsPage1 does not display in the designer.
This problem only occurs when you add the reference to the Visual C++ runtime. Without this reference adding a search contract works fine!
Any ideas? What am I missing here? Can you replicate the issue using the above steps?
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.
c#, and the LayoutAwarePage is in the correct namespace App1.Common. Restarting VS2012 or doing a delete and rebuild doesn't help. To replicate this problem Repaired the Visual Studio 2012 installation using Control Panel->Program Features->Visual Studio 2012->Change. Again, nothing happened. The (very helpful) guys over on Stack couldn’t resolve the issue as well, plus I created a new Project and this works, so i logged a call on Microsoft Connect here:
You must add a reference to the WinRTXamlToolkit: From VS2012 Express
- Right click on the "References" item;
- Select "Manage NuGet Packages...";
- In the menu on the left in the new window select "Online" then "Windows & Packages";
- Search for the library named "WinRTXamlToolkit", select it then click on the "Install" button.
'LayoutAwarePage" does not exist in the namespace "using , The name "LayoutAwarePage" does not exist in the namespace is a workaround or if there is an bug fix service pack planned for VS2012. LayoutAwarePage does not exist in namespace App1.Common. j'ai les bonnes déclarations d'espace de noms dans le xaml: xmlns:common="using:App1.Common" et LayoutAwarePage est dans le bon espace de noms App1.Commune. redémarrer VS2012 ou faire une suppression et reconstruire n'aide pas. Pour reproduire ce problème, essayez les solutions suivantes:
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
How to….Item Templates in Visual Studio – My Web Anecdotes, LayoutAwarePage does not exist in namespace VS2012 bug? Question. I'm trying to get a search contract working on my Win 8 app but after adding a search "The name 'LayoutAwarePage' does not exist in the namespace 'using:App1.Common'." I can go to the code and confirm that App1.Common.LayoutAwarePage exists and is accessible. I've tried building/rebuilding the solution, closing all windows and re-opening.
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.
c#, Your browser does not currently recognize any of the video formats Error - Various Errors (The name “LayoutAwarePage” does not exist"). Visual Studio 2017 problem to find the type or namespace. windows 6.1 visual studio 2017 version 15.5. Gordon Zhang reported Jan 05, 2018 at 04:27 PM
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.
I created a new Metro Split App in C++ using VS2012 on Win8 (both RC). xaml files (ItemsPage.xaml or SplitPage.xaml) I get a "Markup error" on the first line: The name "LayoutAwarePage" does not exist in the namespace you'll get a warning; The name "LayoutAwarePage" does not exist in the namespace. Even though there are techniques which advise you to first Clean the solution and then Build the solution, my advice to you to solve it is to Rebuild the solution.This will remove Design Time Errors and repackage your application.
Ik liep in de zelfde kwestie. Het sluiten van VS en de relevante SUO-bestand (in de map van de oplossing, kan worden verborgen) het verwijderen werkte als VS 2012 Bug? - posted in C#: I have fixed my problem about events in Blank Application (Metro Style) and I have found a bigger problem. I am still using the same project. I want to add a new item (Items Page) and when I do it I get 2 errors: 1.
27 LayoutAwarePage does not exist in namespace VS2012 bug? 17 How can I get thumbnail of youtube video on my application in windows phone 7 11 Set resource string to XAML
27 LayoutAwarePage does not exist in namespace VS2012 bug? 18 How can I get thumbnail of youtube video on my application in windows phone 7 11 Set resource string to XAML