Skip to content

Auto-Update OutputType in .csproj for projects made in previous version #430

Description

@jlochoap

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions