Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regenerate Settings.settings

I am in the process of refactoring a project that was, to my chagrin, written in Visual Studio. I come from a Linux background and find Visual Studio a catacomb of disempowering menus.

I am trying to move a Settings.settings file from one solution into another.

Copying all the text from Settings.Designer.cs has produced the desired compile time functionality, but I can't seem to use the gui for changing properties. The gui doesn't show any properties, unlike my source project. I also worry that my changes will disappear at VS's whim (when it regenerates this file).

How can I regenerate these properties from my existing configuration file?

like image 299
Mikhail Avatar asked Dec 27 '12 19:12

Mikhail


1 Answers

You can delete the .Designer.cs file then exclude the .settings file from the project and include it again. Then the .designer file is regenerated.

In between, make sure to click on the Show all files button, otherwise you cannot see the file you have just excluded from your project.

like image 155
Tys Avatar answered Sep 28 '22 05:09

Tys