Bug 55638 - Intellisense broken in shared projects using UWP in VS 2017
Summary: Intellisense broken in shared projects using UWP in VS 2017
Status: RESOLVED DUPLICATE of bug 57746
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.4.0 (15.1)
Hardware: PC Windows
: Normal major
Target Milestone: 15.4
Assignee: Adrian Alonso
URL:
Depends on:
Blocks:
 
Reported: 2017-04-26 17:02 UTC by Jeff Siemens
Modified: 2017-07-03 16:22 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 57746

Description Jeff Siemens 2017-04-26 17:02:46 UTC
# Steps to reproduce
1. Create a new Xamarin Forms project in Visual Studio
2. Add a reference from the UWP project to the shared project that gets created (this is also an issue, but much more minor - the reference should be there by default)
3. In the Xamarin Forms shared project, MainPage.xaml, change the reference project to UWP (top-left of the code editor window).

# Expected behavior
Intellisense works, and there are no errors.

# Actual behavior
Intellisense does not work, and you get a bunch of blue underlines all over your xaml indicating that each of the controls cannot be found. It works fine for iOS and Android, but not for UWP.

# Test environment (full version information)
VS 2017 15.1 (26403.7) Release. Windows 10 Anniversary edition. Xamarin for Visual Studio 4.4.0.34.
Comment 1 Jimmy [MSFT] 2017-04-26 20:52:45 UTC
Does Intellisense begin working after the UWP project is built? Because the UWP project uses a project.json file, it doesn't actually reference the Xamarin.Forms assemblies in the solution's local packages directory. They are restored during the first build and until then Intellisense can't resolve the types.

Regarding having to manually reference the shared project, that does sound like an issue with the template so I'm assigning this to the VS team to look into.
Comment 2 Jeff Siemens 2017-04-26 20:58:42 UTC
No, even after building and running, it still does not work.
Comment 3 Adrian Alonso 2017-07-03 16:22:18 UTC
Hi,

The cause of this issue is a duplicate of Bug 57746. We've already talked with the authoring team and it should be fixed in 15.4. Thanks, Adrian

*** This bug has been marked as a duplicate of bug 57746 ***