In a simple WPF, I have renamed MainWindow class to MyClass and I got this error in App.g.cs:
public static void Main() {
MyClass.App app = new MyClass.App();
app.InitializeComponent();
app.Run();
}
How can I fix this can’t find anything on the internet ?
I accidentally got this error, in my case I had a class with the same name as the namespace. Renaming the class solved the problem.