android - Fresh Xamarin WebView Razor Template Intellisense Errors -


fresh webviewapp (android) template out of box shows intellisense errors (see below). why vs2017 not find references? referenced dlls contain required namespaces? how can solve issue?

basic demo

official xamarain razortodo sample has same intellisense errors

details below...


errors occur in razorview.cshtml (only when opened)

error cs0234 type or namespace name 'linq' not exist in namespace 'system' (are missing assembly reference?)  error cs0234 type or namespace name 'helpers' not exist in namespace 'system.web' (are missing assembly reference?)   error cs0234 type or namespace name 'webpages' not exist in namespace 'system.web' (are missing assembly reference?)   error cs0115 "_page_views_razorview_cshtml.execute()": no suitable method found override. 

out of box, there referenced:

mono.android mscorlib system system.core system.web.services system.xml system.xml.linq 

path of reference assemblies follows:

c:\program files (x86)\reference assemblies\microsoft\framework\monoandroid\v1.0\system.xml.linq.dll 

path of assembly mono.android is:

c:\program files (x86)\reference assemblies\microsoft\framework\monoandroid\v7.1\mono.android.dll 

target framework (in projekt properties):

use newest platform (android 7.1 (nougat)) 

versions:

  • microsoft visual studio community 2017, version 15.3.5
  • also visual studio community 2015
  • microsoft .net framework, version 4.6.01038
  • mono debugging visual studio 4.6.8-pre (ec7034f)
  • nuget-paket-manager 3.5.0
  • xamarin 4.6.0.299 (b63523e27)
  • xamarin.android 7.4.0.21 (2851083)

installed android sdk:

  • android 7.1.1 (api 25): sdk platform, sources android sdk
  • android 7.0 (api 24): sdk platform, sources android sdk, google apis
  • android 5.0.1 (api 21): sdk platform
  • android 4.4.2 (api 19): sdk platform, google apis
  • extras: android support repository rev. 47

----update----

i updated question. project compile cannot work because intellisense errors , no syntax highlighting ;)

i tested out intellisense in razor files (.cshtml) stopped working , xamarin webview - no intellisense in razor

so cleared componentmodelcache , deleted razortemplatepreprocessor in registry.

----update 2----

i installed vs2017. still same errors. $§%& should work right out of box!!! doing wrong???


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -