This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Description
Versions
- Visual Studio Community version: 16.5.4
What happened
IntelliSense does not show Constants when typing local:. However, after typing local:Constants followed by a period, the IntelliSense shows Message field.
Steps to Reproduce
- Install Visual Studio Community Version 16.5.4 and open it.
- Create a new Xamarin.Forms project named
IntellisenseNotWorking with a blank template. I set the platform to UWP only.
- Add a new class to the .Net Standard shared project, name it
Constants as follows.
namespace IntellisenseNotWorking
{
class Constants
{
public static readonly string Message = "Xamarin.Forms is fun!";
}
}
- Modify the
MainPage.xaml as follows.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:IntellisenseNotWorking"
mc:Ignorable="d"
x:Class="IntellisenseNotWorking.MainPage">
<StackLayout>
<Label Text="{x:Static }" />
</StackLayout>
</ContentPage>
- Type
local: right after x:Static. You will see only App shown, no Constants can be selected. However, after typing local:Constants followed by a period, the IntelliSense starts working again and provides you with Message field.
Expected behavior
After typing local:, IntelliSense should show Constants class so I can select it and proceed to type a period followed by typing Message field.
Screenshots
