简体   繁体   English

Visual Studio 2015中的解决方案资源管理器菜单缺少jspm软件包和config.js

[英]Solution explorer menu in Visual Studio 2015 is missing jspm packages and config.js

I'm following an aurelia tutorial with Visual Studio 2015 and ASP.NET core where I installed NPM and run JSPM init, but after successfully creating all the files I can't find the jspm packages or config.js file in my Solution explorer. 我正在使用Visual Studio 2015ASP.NET核心的aurelia教程,我在其中安装了NPM并运行JSPM init,但在成功创建所有文件后,我无法在我的Solution explorer中找到jspm软件包config.js文件

UPDATE 1 The hidden folders and files are now showing up, but I have to right click on the main directory and chose the option to add to existing item. 更新1现在显示隐藏的文件夹和文件,但我必须右键单击主目录并选择添加到现有项目的选项 As you can see from the image I have a lot of files and folders, how can I speed up the process? 从图像中我可以看到我有很多文件和文件夹,我怎样才能加快这个过程? Is there a way to just add all files to the project at the same time instead of manually? 有没有办法只是同时将所有文件添加到项目而不是手动? 在此输入图像描述

Note: The config.js and jspm packages are on my physical directory so I know they exist, but how can I make them show up on my solution explorer menu? 注意: config.js和jspm软件包位于我的物理目录中,因此我知道它们存在,但是如何让它们显示在我的解决方案资源管理器菜单上?

STEPS: I opened cmd prompt and entered: jspm init + npm install jspm --save-dev and selected yes on everything except on the configuration file part I entered: wwwroot and enter yes on everything, then selected babel. 步骤:我打开了cmd提示符并输入: jspm init + npm install jspm --save-dev并在所有内容中选择yes,除了我输入的配置文件部分: wwwroot并在所有内容上输入yes,然后选择babel。

Please let me know what I should do to make the files show up on the solution explorer or at least point me in the right direction. 请让我知道我应该做些什么来使文件显示在解决方案资源管理器上,或者至少指出我正确的方向。 Thank you. 谢谢。

Originally VS projects did not automatically include new files that were added to the Project directory manually outside of Visual Studio. 最初VS项目不会自动包含在Visual Studio外部手动添加到Project目录的新文件。

However, I find that with VS2015 Update 3 and a new AspNet Core project they do "automagically" show up. 但是,我发现使用VS2015 Update 3和一个新的AspNet Core项目,它们会“自动”显示出来。

Not sure if maybe you're on a slightly older build, etc. but you could try the older approach as follows: 不确定你是否有一个稍微旧的版本等等,但你可以尝试以下的旧方法:

Select the Project in the Project Explorer (you currently have a solution-level item selected in that screenshot) and then you will see a new icon appear in the row of icons across the top of the Solution Explorer. 在项目浏览器中选择项目(您当前在该屏幕截图中选择了解决方案级别项目),然后您将在解决方案资源管理器顶部的图标行中看到一个新图标。 This is the "Show All Files" icon/button. 这是“显示所有文件”图标/按钮。

Clicking it will show items that are in the physical directory but are not part of the VS Project. 单击它将显示物理目录中但不属于VS Project的项目。 You should be able to right-click the file an choose include in project (or at least you used to be able to do this in older projects, etc. as stated). 您应该能够右键单击项目中选择包含的文件(或者至少您曾经能够在旧项目中执行此操作,如所述)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM