缺少 app.config 文件和“添加新项目"选项;不显示配置文件 [英] Missing app.config file, and option on "Add New Item" does not show configuration file
问题描述
我在 Visual Studio 2017 上缺少我的 app.config 文件.
当我使用添加新项目"添加时,应用程序配置文件"丢失了.在菜单工具 - Nuget 包管理管理器"上,缺少管理 Nuget 包以获取解决方案".
有什么办法可以让我恢复这些选项吗?当我创建一个新项目时,选项就在那里,但对于这个特定的解决方案却没有.
I'm missing my app.config file on Visual Studio 2017.
When I go added using the "Add New Item", the "Application Configuration File" is missing. On the menu, Tools - Nuget Package Manage Manager, the "Manage Nuget Packages for Solution" is missing.
Is there a way I can get those options back? When I create a new project, the options are there, but for this particular solution is not.
推荐答案
有什么办法可以让我恢复这些选项吗?当我创建一个新项目时,选项就在那里,但对于这个特定的解决方案却没有.
Is there a way I can get those options back? When I create a new project, the options are there, but for this particular solution is not.
您应该确保您的特定解决方案中有一个项目,如果您有一个没有任何项目的解决方案或所有项目都已卸载,您将找不到应用程序配置文件和管理 Nuget 包解决方案.
You should make sure that there is a project in your particular solution, if you have a solution without any project or all project are unloaded, you would not find the Application Configuration File and Manage Nuget Packages for Solution.
另外,如果你的解决方案中有项目,请检查是否所有项目都卸载了,如果是,你应该重新加载它:
Besides, if there is a project in your solution, please check if all the projects are unloaded, if yes, you should Reload it:
如果以上答案不能解决您的问题,请分享更多详细信息,一些屏幕截图会更好.
If above answer does not solve your problem, please share more detail info, Some screenshots would be better.
这篇关于缺少 app.config 文件和“添加新项目"选项;不显示配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!