Skip to content

App name with underscore won't deploy; misleading error message "project needs to be deployed ..." #23839

Open

Description

Description

Attempt to deploy new Maui project "maui_app" results in (incorrect/misleading) error message:

The project needs to be deployed before we can debug. Please enable Deploy in the Configuration Manager.

Steps to Reproduce

  1. Create new project using Maui .Net App template.
  2. Give it a name containing an underscore ("maui_app")
  3. Run on Windows Machine

Expected:
Runs and shows Welcome to .NET Multi-platform App UI Home screen.

Actual:
(incorrect/misleading) error message:

The project needs to be deployed before we can debug. Please enable Deploy in the Configuration Manager.

NOTES:

  • Deploy is checked.
  • Attempts to fix by cleaning project, etc. have no effect.

ROOT CAUSE:

  • this line in csproj:
    <ApplicationId>com.companyname.maui_app</ApplicationId>

WORK-AROUND:

  • remove underscore(s) from ApplicationID:
    <ApplicationId>com.companyname.mauiapp</ApplicationId>

Link to public reproduction project repository

No response

Version with bug

8.0.61 SR6.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

latest Windows 11 stable

Did you find any workaround?

ROOT CAUSE:

  • this line in csproj:
    <ApplicationId>com.companyname.maui_app</ApplicationId>

WORK-AROUND:

  • remove underscore(s) from ApplicationID:
    <ApplicationId>com.companyname.mauiapp</ApplicationId>

Relevant log output

No response

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

Metadata

Assignees

No one assigned

    Labels

    area-single-projectSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizerplatform/windows 🪟s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions