Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 for Bug 19870 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
So I'm playing around with an asp.net MVC5 project in Xamarin and stuff is working as it should, except for intellisense in razor files. Or rather in the C# part of those files.
There's no problem with the html part, the intellisense pops up and is really helpful etc. but when I try to write C# code, like so
No help what so ever, I can't even force intellisense out by clicking ctrl+spacebar.
If you need any more info please let me know =)
I can repro the issue with no completion for the type after the @model, but C# completion elsewhere works fine for me. Do you have other cases where it's not working?
It works in all normal .cs files, but I can't get it to work for C# anywhere in a .cshtml files =)
Weird, do you have a repro case?
I'm sorry, but I don't know what that means =)
What I did to get where I am now is follow this guide to get ASP.NET MVC5 working in XS (since it's broken right out of the box..)
And from there .cshtml only show intellisense in the html part, not the cs part.
Is that what you're looking for? =)
I mean step by step instructions to reproduce the problem.
For example if I create an ASP.NET MVC3 Razor project in XS 5.0, it works: http://screencast.com/t/1Bn4SXo5BD3z
And if I change the target framework to 4.5 and add a ASP.NET MVC5 NuGet Package reference, it still works.
System: windows 7
XS version 4.2.5
Create new project
MVC3 with Razor
*the project is created and loaded*
I click F5
and I'm greeted by my new website
Well, that won't do. So I follow the link from earlier
In the project options I go Build->General and then set target framework to be 4.5
Then I right click the reference folder and select Manage NuGet Packages. Then I search for and add "Microsoft ASP.NET MVC".
Yet again I try to run and this time I'm greeted with this page
Ok, I now open the root Web.config file
And I change this line (on mine, line 92)
<add key="webpages:Version" value="22.214.171.124" />
<add key="webpages:Version" value="126.96.36.199" />
This time the site looks like so
Now in the views folder I open the Web.config
I find all instances of
And replace them with
And all instances of
And replace them with
And this time when I run I'm finally greeted by
Now if I open a .cshtml file at random, and I write "@" to start writing c# code, the intellisense or autocomplete or whatever it's name is, window doesn't pop up, if I start writing, and I click ctrl+space it doesn't show up either.
that said, I have just discovered that if I were to hit ctrl+space in the middle of html code, it does indeed come up with this short list of suggestions for C# code.
I hope that answers that. If not, then let me know what you need =)