No intellisense for xamarin forms shared project

Hi, I've been working on my Xamarin.forms project for a couple of weeks now and been managing to live with my intellisense problems, but as the project grows, it's getting to the point now where it's becoming a real hindrance to my work.

I'm getting no xaml intellisense (something I've seen quite a few people complain about), though far more importantly, in my shared project I'm getting very limited C# intellisense. Intellisense is picking up objects in the system namespace like string, List, Exception, EventArgs etc., but that's pretty much it. No intellisense for Xamarin.Forms objects, anything I've created in my shared project (unless it's in the same file as the code calling it), also not picking up objects in my portable class library or other 3rd party libraries like Newtonsoft.Json.

I've already tried completely reinstalling visual studio 2017, though this has had no effect.

Could someone please help me with this?

James

Answers

  • JamesCoyleJamesCoyle GBMember

    Update:

    I just followed this guide (https://github.com/dotnet/roslyn/wiki/Diagnosing-Project-System-Build-Errors) and found that my xamarin android project is loading with the following error:

    Build FAILED.

    C:\Users\JamesC.MJM-NORTH\documents\visual studio 2017\Projects\XamarinTest\XamarinTest\XamarinTest\SalesOrderPage.xaml : error : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 0 Warning(s) 1 Error(s)

    I'm really confused what could be causing this, since the file path is clearly well under 260 characters in length, and just in case it helps here's the markup inside it:

    <?xml version="1.0" encoding="utf-8" ?>

    <StackLayout>
        <Label Text="Sales Order Menu" FontSize="24" HorizontalOptions="Center" />
    
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
            </Grid.RowDefinitions>
    
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
    
            <Button Grid.Row="0" Grid.Column="0" x:Name="PickBtn" Text="Pick" Image="delivery_export.png" Clicked="PickBtn_Clicked" />
    
            <Button Grid.Row="0" Grid.Column="1" x:Name="PackBtn" Text="Pack" Image="package_export.png" Clicked="PackBtn_Clicked" />
        </Grid>
    </StackLayout>
    

Sign In or Register to comment.