如何在Consol应用程序中添加应用程序配置 [英] How to Add Application Configuration in Consol Application

查看:101
本文介绍了如何在Consol应用程序中添加应用程序配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我使用的是Visual Studio 2012 Web Express ..





我创建了一个类库>>>>此类库名称Hello Service>>>

但我已转换为Console Applicatin>>>



但我的问题是我没有添加App.Config文件>>>



当我添加新项目时,我还没有搜索App.Config文件....



请帮助我...尽快...我等你的回答....





预付谢谢非常多

Hello All,

I have using Visual Studio 2012 Web Express..


I have Create One Class Library >>>> This Class Library name Hello Service >>>
but I have convert to Console Applicatin >>>

But my problem is I have not add App.Config file >>>

When I have Add New Item then i have not search App.Config file ....

Please help me... AS soon as Possible ... I waiting for u r answer....


Advance Thank You very Much

推荐答案

在解决方案资源管理器中,右键单击项目,然后使用属性并在设置选项卡(当前页面的左侧菜单)中添加至少一个应用程序设置,然后保存您的项目并自动将App.config添加到您的项目。
In Solution Explorer, right click the project, then use "Properties" and in the "Settings" tab (left menu of your current page) add at least one application setting, then Save your project and automatically the App.config will be added to your project.


这篇关于如何在Consol应用程序中添加应用程序配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆