Skip to content
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

[XF] adding Prism.Unity.Forms to UWP project #376

Closed
ValdimarThor opened this issue Dec 31, 2015 · 11 comments
Closed

[XF] adding Prism.Unity.Forms to UWP project #376

ValdimarThor opened this issue Dec 31, 2015 · 11 comments
Labels

Comments

@ValdimarThor
Copy link

I just added a UWP project to me XF solution and when adding Prism.Forms and Prism.Unity I get this error: Type universe cannot resolve assebly: Prism.Unity.Forms, version=6.2.0.0.......
is there no way to let nuget resolve this, or do I have to reference it manually?

Regards Valdimar Thor

@bartlannoeye
Copy link
Contributor

@brianlagunas time to update the XF packages ! :)

@ValdimarThor
Copy link
Author

Isn't it rather that nuget doesn't know or inspects that the UWP project has a Prism.Forms reference (indirectly)?

@brianlagunas
Copy link
Member

@ValdimarThor you are correct. Nuget cannot detect you are in an XF solution, so it is adding the wrong Prism Unity reference. For now you have to manually reference Prism.Unity.Forms. We will have to create a separate NuGet package for XF containers to accommodate the newly supported UWP projects in an XF solution.

@ValdimarThor
Copy link
Author

Thanks for clarifying Brian, I've done that and everything builds now.

btw. I know this might not be the most appropriate place to ask but.....any news on your next PRISM pluralsight course :) ?

Regards
Valdimar Thor

@brianlagunas
Copy link
Member

My newest Prism Problems and Solutions Loading Modules Based on User Roles course should be published soon. Then I have more in the works after the holidays.

@ValdimarThor
Copy link
Author

Brilliant, thanks Brian. Looking forward to it :)

@WarBorg
Copy link

WarBorg commented Jan 18, 2016

hello. is there a sample app that includes XF and UWP ? because I have followed the directions from the xamarin blog to add a UWP to to my XF project but I keep getting errors like

Reference to type 'PrismApplicationBase' claims it is defined in 'Prism.Forms', but it could not be found

and I am not sure what I files I need to change to make everything work toghter

thank you in advance

@brianlagunas
Copy link
Member

As I mentioned in this thread, you can't use NuGet to add the correct assemblies to a UWP project. For example, PrismApplicationBase does not even exist in PrismForms because that is in the Prism.Windows assembly. For now, you have to manually add the references to your UWP XF applications.

@WarBorg
Copy link

WarBorg commented Jan 18, 2016

yes I already did that, seems I also needed to add the Microsoft Unity nuGet package and after a few clean and build commands it seems to work.

thank you

@brianlagunas
Copy link
Member

Okay, I created a new NuGet package to support UWP in XF apps now. Can you guys try it out and let me know if you run into any issues:

https://www.nuget.org/packages/Prism.Unity.Forms/6.2.0-pre3

brianlagunas added a commit that referenced this issue Jan 21, 2016
Added Prism.Unity.Forms NuGet package to address #376
@lock
Copy link

lock bot commented Feb 1, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants