Marco Frost
Marco Frost

Reputation: 800

C#: Properties.Settings

I've made a terrible mistake and deleted Settings.Settings from my project in VS2010.

Is there a possibility to recreate that file? I didn't found anything yet.

Cheers, Marco

Upvotes: 1

Views: 156

Answers (2)

3Dave
3Dave

Reputation: 29071

If by "recreate" you mean "make a new one":

  1. Right-click on the project in the solution explorer,
  2. Select "Properties"
  3. Select "Settings" on the left
  4. Click the link in the center pane that says "This project does not contain a settings file. Click to create one"
  5. Enter your settings.

Or, pull a copy from your source control system.

Upvotes: 3

gcoleman0828
gcoleman0828

Reputation: 1542

If you Delete anything referencing the Settings you have and Go to the properties of the project and click Settings, it should prompt you to recreate it: Visual Studio Project: Properties/Settings.settings Missing

Upvotes: 2

Related Questions