-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Xamarin.Forms previewer fails with shared project that doesn't follow specific naming pattern #5038
Comments
Any ideas on what might be causing this? I'd be happy to add you to my Azure DevOps project if you'd like. |
@mfeingol I'd be interested to see whether this issue continues to reproduce with the latest VS 2019 preview. Please try it and see if we've fixed this one (I believe we have). If not, we'll take a deeper look. |
Just repro'd this myself. As you were. |
Confirmed it still repros in 2019 RC as well. :-) |
So, it is "referenced" from the Android project via including the shared project's
Perhaps not ideal wording for that error message for the shared project scenario, but regardless, it should work out of the box, and it is an issue if it does. |
@TimBarham: you're right, my Android project has a |
Same issue I am facing....killing my time |
@mfeingol can you try again on the latest vs 2019? I tested with the following shared project And for me that's showing up on vsmac and vs2019 now |
@PureWeen: works with your sample projects. Still doesn't work with my own projects. Want me to add you to my Azure DevOps project? |
Yea! shneuvil at microsoft.com |
You're in. |
@PureWeen ping! |
It looks like I have access I'm pulling down the project now and I'll let you know what I find. Apologies for the delay |
No worries. You can ping me internally if you have questions. |
@mfeingol I updated the description with how to work around the issue. |
Thanks for the issue. I'm doing a sweep of Xamarin.Forms previewer issues to close them as we're focusing on areas with greater impact for now. We will keep the issue on file, however, for future reference. Thanks again! |
Description
Currently the previewer expects a specific naming convention when associating a shared project and a platform project
If the shared project has a name like
Than the previewer is unable to figure out what project to associate the shared project with.
Shared projects are being deprecated so I'm not sure how fixing this will get prioritized
Original Description
I have a Xamarin.Forms Android project that uses a shared project for XAML and code-behind. I recently discovered the existence of the Xamarin.Forms XAML Previewer. Unfortunately, it does not appear to work with my project. The error displayed is the following:
"An android application project must reference a project containing this xaml file in order to render in the previewer"
Since the shared project is, well, shared, there's no way to reference it from the Android project.
The app works well otherwise, and has been shipping to the Google Play Store for some time now.
Any ideas on how to troubleshoot this? Thanks.
Steps to Reproduce
Expected Behavior
Actual Behavior
Basic Information
Screenshots
Reproduction Link
The text was updated successfully, but these errors were encountered: