Problem:
After opening a MAUI project made in the previous CSharpShellApp version, many breaking changes need to be fixed due to the update to a new .NET version. Of course, it's up to the user to update this.
However, when trying to run the program, an error CS5001: Program does not contain a static 'Main' method suitable for an entry point is presented. This seems to be due to how CSharpShellApp versions manage the program, as seen in their corresponding .csproj files. Previous version produced an <OutputType> of Exe, while the new version seems to need a Library type.
This can be fixed by manually editing the .csproj file, but it would be nice if the App detected and fixed this automatically.
Problem:
After opening a MAUI project made in the previous CSharpShellApp version, many breaking changes need to be fixed due to the update to a new .NET version. Of course, it's up to the user to update this.
However, when trying to run the program, an error
CS5001: Program does not contain a static 'Main' method suitable for an entry pointis presented. This seems to be due to how CSharpShellApp versions manage the program, as seen in their corresponding.csprojfiles. Previous version produced an<OutputType>ofExe, while the new version seems to need aLibrarytype.This can be fixed by manually editing the
.csprojfile, but it would be nice if the App detected and fixed this automatically.