-
Notifications
You must be signed in to change notification settings - Fork 746
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
Can't add project reference in 'Cross-Platform Library' #3909
Comments
Unfortunately, there's no good solution for this issue, as it causes a conflict between two VS features (add reference, and XAML intellisense). This is caused by the fact that Currently, the only workaround is to move |
@jeromelaban Thanks. I've managed to get the reference in place now. But when I try and build the first library, it failed due to not finding uap10.0.16299. Now I think that just because it's got the wrong version as I don't have that SDK installed (got 18362), but I'm pretty sure that reference was created by Uno? Is it possible for Uno to sense what SDKs are installed and use the correct version? Having said that, that's more minor than the above problem. Hopefully reading this will help anyone else who has the same issue. Thanks! |
Thanks for the update. It would probably be possible to determine which versions are available, though that logic may not be easy to determine. In all cases, the support of .NET 5 for UWP/WinUI will change all this and it will become lots easier to work with. |
While this issue is still valid for UWP, it's now fixed with WinAppSDK. Closing as evolution made its work. |
Current behavior
I am unable to add a reference to another project within a Cross-Platform Library
Expected behavior
Should be able to create a reference to another project.
How to reproduce it (as minimally and precisely as possible)
Create a new uno project. Within the project create a new 'Cross-Platform Library'. Right click on the new project, choose add project reference. Get the message "Missing value for TargetPlatformWinMDLocation property".
(Not sure how to include pre-built project in this report)
Workaround
Temporarily move the
uap10.0.xxx
target framework to be at least second in theTargetFrameworks
list.Environment
Nuget Package:
Nuget Package Version(s):
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?
The text was updated successfully, but these errors were encountered: