1
Out of nowhere, ALL my projects are making the mistake
The name "Initializecomponent" does not exist in the current context (CS0103)
When created. I don’t need to change anything, the error comes for free.
From what I researched, I tried to fix cleaning the solution, recovering nuget packets and recompiling, but it’s going nowhere!
Error image:
What can I do?
Out of nowhere or related to your previous question?
– Leandro Angelo
I believe it has nothing to do with my previous question because I started a new project and in another directory. But yes, it happened after what happened in my previous question. What is working for me is to give Ctrl c Ctrl v in the folder of another empty project that I have here that is not generating any error, but if I actually go in VS and create a new project, this error in question happens.
– Igor Henriques
Create a new project and see if an error appears in the error list tab
– Leandro Angelo
New project created now: https://i.imgur.com/4YlgqhF.png
– Igor Henriques
How are your shampoos? In Build action properties, are they embeded or Compile? How are you creating the project, Shared or . Net Standard?
– Leandro Angelo
Sorry, how/where I check the build action properties?
– Igor Henriques
If you right click on the XAML file appears the option "Run Custom Tool"?
– Jéf Bueno
If you are referring to this: https://i.imgur.com/djZLGDY.png, then do not...
– Igor Henriques
Well, I went to Mainpage.xaml properties, changed the Build Action to C# Compiler, and then went back to Resource Entered and the error was gone. I recompiled to be sure and really disappeared... I’m confused.
– Igor Henriques
I tested what I did above with all the other projects that were bugged and worked.
– Igor Henriques