2008年3月11日 星期二

Code Snippet titled [Method Stub - Body] failed to load

VS2005:
如果进行override操作时,提示: Code Snippet titled [Method Stub - Body] failed to load. Verify that refactoring snippets are recognized in the Code Snippet Manager and that the snippet files are valid on disk. 那说明指 定的Code Snippet块无法找到,解决办法很简单,只要重新导入Code Snippet块就行了。找到并打开Code Snippet Manager(Ctrl + K,Ctrl + B),然后选择要操作的语言(C#),用Add按钮导入两个默认的文件夹:Refactoring和Visual C#,这两个文件夹一般会在VS2005安装目录下的,如:C:\Program Files\Microsoft Visual Studio 8\VC#\Snippets\1033 ,如果有这两个文件夹,则先删除然后再导入。

轉載自:
http://www.cnblogs.com/ttinfo/archive/2007/04/26/727784.html

沒有留言:

張貼留言