visual-studio - 命令 "File.AddexistingItem"无效

标签 visual-studio visual-studio-2015

我很好奇为什么这个命令不起作用?

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 no auto-completion
(如您所见,File.AddExistingItem 没有自动完成功能)

3.出来"Command "File.AddexistingItem" is not valid."但是类似的命令 File.AddExistingProject 可以添加 *.csproj
using File.AddExistingProject works, and no "Command xxx is not valid" coming out
(使用 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/

相关文章:

css - 从外部站点导入 SASS 文件时的变量问题

c++ - Visual Studio 2013 : fatal error: cannot open file 'libjpeg_d.lib'

visual-studio-2010 - 带有团队资源管理器的 KERNELBASE.dll Visual Studio 2010 上的 APPCRASH

c# - 如何将/features :strict (of csc. exe 的等价物指定给 msbuild.exe 或 .csproj 文件?

c# - 将项目添加到 AddIn 中的 visual studio 文件夹右键单击菜单

c# - 如何添加对 SqlServerSpatial.dll 的引用

sql-server - 使用最新版本的 SSDT SqlPackage.exe 部署 SQL Server dacpac 会删除列默认值

visual-studio-2015 - Visual Studio 2015 Git 错误消息 "Cannot pull/switch because there are uncommitted changes"

c# - vstset.console.exe 程序集解析失败

visual-studio - Visual Studio 2015会在保存时删除文件-Cordova解决方案