Xamarin WebView - No Intellisense in razor

后端 未结 2 1873
失恋的感觉
失恋的感觉 2020-12-18 12:55

I\'m trying out xamarin webView where you can use a razor-view as the UI. But the intellisense for the C#-code doesn\'t work.

Is this a known bug or am I missing som

相关标签:
2条回答
  • 2020-12-18 13:25

    We were having this issue as well and found a solution in a blog post by Michael Ridland in the form of a project called MVCPolyfils. The post and the .git repository can be found here: https://github.com/rid00z/MVCPolyFils

    We added it and updated the references in our .cshtml headers and the whole thing works a treat now - such a relief!

    0 讨论(0)
  • 2020-12-18 13:32

    Close all instances of Visual Studio.

    Go into your "(Visual Studio install path)\Common7\IDE\Extensions\Xamarin\Xamarin\3.9.483.0\" And rename the three files: System.Web.Razor.dll, System.Web.WebPages.dll, and System.Web.WebPages.Deployment.dll into System.Web.Razor.bad, System.Web.WebPages.bad, and System.Web.WebPages.Deployment.bad.

    Search your registry with the registry editor and remove the "RazorTemplatePreprocessor" key.

    Delete your solution user preferences files: (Solution Name).suo

    When you start up Visual Studio, you will have your razor intellisense again!

    0 讨论(0)
提交回复
热议问题