InitializeComponent problem
Posted: Thu Oct 29, 2020 7:45 pm
Hi all,
I thought I had retired (80 last week but no proper celebration due to COVID-19)!
However, I had to change old code and I have an interesting problem. Several, but not all, windows in my App cause "The name 'InitializeComponent' does not exist in current context" error to be listed. This of course causes other compilation errors too.
For some reason my Solution does not include a .xsproj file though it does include a .xsproj.backup file. I'm guessing this is the problem. However the .xsproj file does exist in the File Explorer but I can't import it. A message says that it does exist but that I can't edit it. Is there a way to convert the backup file to a 'real' file?
I see that this error message is not unknown to C# programs. I have checked out the recommended corrections but they made no mention of a .csproj file being absent from the solution.
What to do? I am still using VS 2015 Community version and an X# beta version. Should I update them? Would that help? Stupidly I don't have a recent backup!!!!
I trust the team members are all well.
Best wishes to all,
Alwyn
I thought I had retired (80 last week but no proper celebration due to COVID-19)!
However, I had to change old code and I have an interesting problem. Several, but not all, windows in my App cause "The name 'InitializeComponent' does not exist in current context" error to be listed. This of course causes other compilation errors too.
For some reason my Solution does not include a .xsproj file though it does include a .xsproj.backup file. I'm guessing this is the problem. However the .xsproj file does exist in the File Explorer but I can't import it. A message says that it does exist but that I can't edit it. Is there a way to convert the backup file to a 'real' file?
I see that this error message is not unknown to C# programs. I have checked out the recommended corrections but they made no mention of a .csproj file being absent from the solution.
What to do? I am still using VS 2015 Community version and an X# beta version. Should I update them? Would that help? Stupidly I don't have a recent backup!!!!
I trust the team members are all well.
Best wishes to all,
Alwyn