开发者

Cannot access settings file

开发者 https://www.devze.com 2023-02-18 10:14 出处:网络
I am creating new a project in VS2008. I copied a settings file from a different(old) project to my new project.I am not able to access the information(some constant values) contained inside the setti

I am creating new a project in VS2008. I copied a settings file from a different(old) project to my new project. I am not able to access the information(some constant values) contained inside the settings file in my .cs file.

I tried restarting the application/project, still the settings file r开发者_如何学JAVAemain unaccessible in my .cs file.

Thanks,

John.


Did you update the namespaces in both the Settings.settings file and Settings.Designer.cs file?

It would actually be easier to create a new settings file in the new project and open a second copy of VS2008 for your old project and copy the settings between the two that way.


Use full class path, u can read full path to the newly copied settings class file by using class view window;

The best way is still to copy old values to the new project's settings file or replace in projects settings file by link to a settings file in a both projects. making this settings file shared, if required

0

精彩评论

暂无评论...
验证码 换一张
取 消