error CS1061: 'Settings' does not contain a definition for

David McClanahan 1 Reputation point
2021-06-06T00:42:49.98+00:00

error CS1061: 'Settings' does not contain a definition for 'WindowTop'

Windows C# XAML application has been working fine.
Been using the App Defaults.

I tried adding one variable (the first) to Project Proprieties Settings

and broke the application.
Compiling of "UserPreferences.cs" which I think is automatically generated and I've not modified ..
gives errors like

UserPreferences.cs(119,54,119,63): error CS1061: 'Settings' does not contain a definition for 'WindowTop'

UserPreferences.cs(120,55,120,65): error CS1061: 'Settings' does not contain a definition for 'WindowLeft'

I tried deleting my new variable but it still fails

thanks

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,008 questions
{count} votes

1 answer

Sort by: Most helpful
  1. David McClanahan 1 Reputation point
    2021-06-06T01:46:54.457+00:00

    I deleted the variable that I added, nothing else, so the Settings is empty.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.