Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

copying the visual studio settings for one project to another

I have a visual studio 2010 project done in VB.net and i have around 45 variables in the application settings. The one you set in the properties.settings. Now i m having a similar project and i wanna copy the settings variables to this project. Not sure how to proceed with this.

what i did is tried to copy the auto generated code for the settings into that project and it didnt work out well. I am not even sure how to google this out and tried the following.

  1. copying application settings from one project to another in visual studio
  2. moving application settings between visual studio projects

Both of this didnt get what i wanted and am actually out of clue on what to search for this.

So is there a way to directly copy the settings from one project to another project.

like image 523
swordfish Avatar asked Aug 31 '11 12:08

swordfish


1 Answers

All I did was grab the physical Settings.Designer.vb and Settings.settings files found in the "My Project" folder of your applicaton (assuming it's a windows App and not web) and copied/replaced the existing settings files in the new project. Did a rebuild of new project and errors kicked back but that was just the desinger code referencing the old project name. Corrected by replacing the old project name with the new one and voila, worked.

HTH

Dave

like image 200
Dave Avatar answered Oct 03 '22 05:10

Dave