-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
References to windows.foundation, windows.ui and windows.data missing (Visual Studio 2019) #28
Comments
Hey, |
Windows 10 1903 and VS community 2019, all clean install with .NET desktop development but the notifications are the same |
That's... weird. Can you cross-check under project -> add reference, there you should have the side bar entry Windows that includes the entries Data, Foundation and UI. |
OK, I think we're getting there. Can't check the exact name since I'm not on my main machine due to the warm weather, but I guess it might be necessary to install the windows 10 SDK package for the references to become available. |
Ive already got all the SDKs which is why its confusing me so much |
Sorry for the delay, it cooled down a bit today so I'm back on my main machine.
And apparently I also have the Win10 SDK 10.0.14393.33 as a leftover from Visual Studio 2015... When you have all of them installed, the only real difference would be that you already use VS 2019 while I'm still on 2017. |
Same files, even using 2017 is still the same issue. What are the properties for your version of windows.data , here is what mine shows https://puu.sh/DCrHH/59be3043f0.png |
Going through the code, its all pointing back to toast notifications, if i remove those lines of code then it compiles fine. |
https://i.imgur.com/Fh2F1a4.png |
I have finally figured out what the hell has been going on, there is a bug in 1903 with Visual Studio 2017 (i removed 2019) where it cant actually see the WinMetadata folder, so i copied the contents to a different location (to make things easier i copied them to C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10) and then i add them in as a reference using the browse option and selected them all to help. |
Good to know and also another reassurance for me that it's a good idea to wait with new Win10 releases for several months (praise be to Win10 pro). |
yeah i can get it to build, until i start changing namespaces like the localization for the different languages. Wanted to be able to remove the extra languages and the update section to make it easier for my idea on a redesign on the context menu i want to test. |
Just wanted to add my 2 cents to this since I ran into the issue myself today after uninstalling VS 2017... As you said, VS 2019 can't see/access C:\Windows\System32\WinMetadata and due to that the references are missing. This could be a bug, but I also found hints that it might be intended since the WinMetadata folder is apparently meant to be only used by windows itself. Anyway, copying the folder somewhere else and manually adding references to Foundation, UI and Data fixes it. |
the referenced component windows.foundation could not be found, same goes for windows.ui and windows.data
Am i missing something as i wanted to build a version using different icons for myself but it refuses to compile without those.
The text was updated successfully, but these errors were encountered: