vs 2017 intellisense无法正常工作的C#和XAML [英] vs 2017 intellisense not working C# and XAML

查看:162
本文介绍了vs 2017 intellisense无法正常工作的C#和XAML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个似乎无法解决的奇怪问题,我的XAML Intellisense不再显示,并且后面的代码仅显示预制成员.我制作的类和方法没有显示.此外,Visual Studio也无法识别其他页面,也不会识别导航.

I have a Strange issue that I can't seem to fix, my Intellisense for XAML is no longer showing up and the code behind is only showing the premade Members. The Classes and Methods I have made are not showing up. Also Visual Studios is not recognizing other pages and wont recognize Navigation either.

我尝试转到工具">文本编辑器">"C#">"Intellisense-语句完成",并选中自动列出成员和参数信息"框.我还试图清除缓存.

I have tried going to Tools>Text Editor>C#>Intellisense -Statement completion and checking the boxes Auto list members and Parameter information. I also tried to clear out the cache.

根据我的研究,似乎没有其他人遇到同样的问题.

From what I have researched it seems nobody else is having the same problems.

推荐答案

  1. 关闭项目中所有打开的选项卡,然后退出VS,在VS中重新打开解决方案,然后在解决方案资源管理器中右键单击XAML文件,然后选择打开方式...".>源代码(文本)编辑器.
  2. 删除obj文件夹并清理项目
  3. 右键单击XAML页面>属性">构建操作">将其更改为其他内容并返回
  4. 在此特定项目下添加新的内容页面,并检查其是否正常运行.

我想补充一点,这仅适用于我的.cs文件.

I would like to add that this worked for my .cs files only.

要使Intellisense XAML文件正常工作,请尝试对.cs文件重复上述步骤,或等待XAML文件获得Intellisense.

To get the XAML files Intellisense to work try to repeat the above steps on your .cs files or wait for the XAML files to gain Intellisense.

这篇关于vs 2017 intellisense无法正常工作的C#和XAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆