microsoft-ui-xaml: WinUi 3.0 Alpha new project namespaces are not found

Hi, i was trying new 3.0 alpha WinUi after installing WinUI.ProjectTemplates.vsix package and updating VS 19 Preview to latest version i created new WinUi project (project startup took a lot of the time ) and after initialization i see all namespaces in RED with errors like Symbol not found and Type or namespace not found.
VS version : 16.6.0 Prev 2 Windows Build : 18363.720

Please check the attached snaps.

image image

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

So i tried again with a new instance of VS. Process i followed -Vs installed Latest 16.6.0 Prev 2 -Installed VSIX for this. -Created new WinUI Project using Visual Studio -Started Build — (and as shown above same errors nuget restore failed)

Now as @danzil suggested i used CMD to directly restore nuget and got this result. as can be noticed everything went smoothly except one exception

image

Now again i build solution and got same errors where it says napespaces abcd not found (but this time it didn’t try to download those packages). ![image](https://user-images.githubusercontent.com/16499626/78012166-04a0f980-735e- image .

I have tried restarting, re-Instaling Vs many times (cuz i really want t make it work).

I did all this as suggested by @danzil. After this a restart and new Project creation and finally got everything working. for me i guess problem was nuget restore which in Visual Studio was failing every time but doing it manually worked.

I just upgraded to Version 16.6.0 Preview 2.0, installed the vsix and tried out a blank app, and it seems to work fine. @danzil any ideas what might be happening on @RaoHammas 's machine ? If this is something related to the VS install, you can try repairing or re-installing VS.

@RaoHammas I believe these are intellisense errors. Are you able to build and run the app ?