[英]Adding app.config (Application Configuration File) in Visual Studio Professional 2017
I can't get the Application Configuration File template to show up under my Add > New Item > Visual C#. 我无法在我的添加>新项> Visual C#下显示应用程序配置文件模板。 I've run a repair. 我做了修理。 I've uninstalled and reinstalled. 我已经卸载并重新安装。 I've deleted and added Cache folders. 我删除并添加了缓存文件夹。 I've run devenv.exe /InstallVSTemplates. 我运行了devenv.exe / InstallVSTemplates。 Nothing is working. 什么都行不通。 If anyone can tell me specifically what installation elements I should be including, and specifically what type of Project I need to start that might help. 如果有人能够具体告诉我我应该包括哪些安装元素,特别是我需要启动哪种类型的项目可能会有所帮助。 I want to create a simple .Net Web Form in .Net and C# and need to include an app.config file. 我想在.Net和C#中创建一个简单的.Net Web表单,并且需要包含一个app.config文件。
When you create a new project (depending on the type of project like a web application for example) it will automatically create a template app.config file. 当您创建新项目时(例如,根据项目类型,例如Web应用程序),它将自动创建模板app.config文件。
Worst case just make a txt file in notepad and call it [Appname].config 最坏的情况只是在记事本中创建一个txt文件并将其命名为[Appname] .config
Another way would be to go in the project properties, then the Settings tab. 另一种方法是进入项目属性,然后进入“设置”选项卡。 If there are no settings yet, a link should exist in the middle of the empty tab to create a default setting file. 如果还没有设置,则空选项卡中间应存在一个链接以创建默认设置文件。 Add one Application or User setting and save. 添加一个应用程序或用户设置并保存。 Among other things a config file will be created for you too. 除此之外,还将为您创建配置文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.