Visual Studio 2017. Settings.Settings和My.Settings丢失了吗? [英] Visual Studio 2017. Settings.Settings and My.Settings lost ?

查看:269
本文介绍了Visual Studio 2017. Settings.Settings和My.Settings丢失了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我有Visual Studio 2017社区,如果创建一个新项目asp.net我找不到这个设置页面,如果我打开一个旧的asp.net应用程序可以正确地获取此设置这张图片你可以看到一个带有设置的旧asp.net项目。


我使用设置来配置连接字符串和全局变量但是在这一刻我是否创建了一个新的asp。净项目我做不到...


你能帮忙吗?





解决方案


欢迎来到MSDN论坛。


在解决方案资源管理器中,双击属性图标以打开


将要共享的文件放在解决方案文件夹中的项目中。然后,在每个项目中,选择Add Existing Item ..


在Add Existing Item对话框中,选择公共文件。单击"添加"按钮右侧的下拉箭头,然后从下拉菜单中选择"添加为链接",而不是单击"添加"按钮。



祝你好运,


Joyce


Hello i have the Visual Studio 2017 Community and if a create a new project asp.net i can't find this settings page, if i open a old asp.net application is posibly to get this settings in this picture you can see a old asp.net project with the settings.

I used the settings to configure the connection strings and the global variables but in this moment if i create a new asp.net project i can't do it...

Can you helpme ?


解决方案

Hi,

Welcome to MSDN forum.

In Solution Explorer double-click Properties icon to open the Project Designer->Select the Settings tab->click on "The project does not contain a default setting file. Click here to create one" and you will get a blank one for a new project.

If you want to share application setting between asp.net applications, you can use "add as link", refer:

https://stackoverflow.com/questions/5792997/common-settings-settings-file-for-entire-solution

Place the file you want to share across projects in a Solution Folder. Then, in each project, choose to Add Existing Item ..

In the Add Existing Item dialog, choose the common file. Instead of clicking the Add button, click the drop-down arrow on the right side of the Add button and choose Add As Link from the drop-down menu.

Best regards,

Joyce


这篇关于Visual Studio 2017. Settings.Settings和My.Settings丢失了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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