我很好奇为什么这个命令不起作用?
File.AddExistingItem
因为它在 MSDN 库中说明,并且它有自己的章节!
https://msdn.microsoft.com/en-us/library/6h4c0t7y.aspx
我正在使用 VS2015
1.通过View->Other Window->Command Window打开IDE的命令窗口
(或简单地通过快捷键:CTRL + ALT + A
2. 输入 File.AddExistingItem Whatever_Valid_CSHARP_Filepath
(如您所见,File.AddExistingItem 没有自动完成功能)
3.出来"Command "File.AddexistingItem" is not valid."
但是类似的命令 File.AddExistingProject 可以添加 *.csproj
(使用 File.AddExistingProject 有效,并且没有出现“Command xxx is not valid”)
有谁知道为什么它不起作用?
我该如何解决?如果它是可能的。
最佳答案
我向 Microsoft 开发人员社区(又名用户语音)添加了关于此的错误报告
https://developercommunity.visualstudio.com/content/problem/536640/fileaddexistingitem-does-not-appear-visual-studio.html
关于visual-studio - 命令 "File.AddexistingItem"无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46280355/