I have an WPF Solution with 1 project inside, everything works fine in debug & release mode inside VS2019.
But I can't run dotnet publish
inside the project,
I have the following errors :
error CS1558: 'App' does not have a suitable static 'Main' method [C:\Users\Alpha\Alpha\Alpha.csproj]
C:\Users\Alpha\Alpha\Dialogs\Views\DialogAddTestView.xaml.cs(25,13): error CS0103: The name 'InitializeComponent' does not exist in the current context [C:\Users\Alpha\Alpha\Alpha.csproj]
and many more InitializeComponent errors
I really can't figure out why,
I checked the project configuration and made sure that the build action of App.xaml is ApplicationDefinition.
(I have tried all the solutions found here Does not contain a static 'main' method suitable for an entry point)
Thanks for your help