[英]Why doesn't Intellisense work in VS2010 when I use wildcards in my .csproj file?
Steps to reproduce: 重现步骤:
Write some code: 写一些代码:
class Foo { } class Bar { Foo x; }
Foo x;
在Foo x;
观察到Foo x;
the class name is highlighted. 类名称突出显示。 Intellisense will work for classes in this assembly. Intellisense将适用于此程序集中的类。 Why does this happen? 为什么会这样? I would like to use wildcards to make it easier to add new files outside of the Visual Studio IDE. 我想使用通配符,以便更容易在Visual Studio IDE之外添加新文件。
I still don't know why this happens, but I did find out how to fix it: replace **\\*.cs
with .\\**\\*.cs
and as if by magic, it all works. 我仍然不知道为什么会发生这种情况,但我确实找到了如何修复它:用.\\**\\*.cs
替换**\\*.cs
和.\\**\\*.cs
魔术一样,一切正常。 Hope that helps somebody else! 希望能帮助别人!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.