Skip to content

[DevServer CLI] When the solution's restore fails, uno-devserver start succeeds and health reports Healthy with no mention of the error #25689

Open

Description

@khaskoul

Current behavior

If an app's dotnet restore fails, uno-devserver start still exits 0 and starts the host. uno-devserver health then reports Status: Healthy. Neither command mentions the failed restore, so the developer gets a "healthy" Dev Server with no hint that the project can't be restored.

The failing restore here was a PackageReference with a Version in a project that uses central package management (the template's default), which gives error NU1008.

Logs
# Uno.Sdk 7.0.0-dev.89, Dev Server host 7.0.0-dev.2428, uno-devserver CLI 7.0.0-dev.2345
$ dotnet restore QaApp/QaApp.csproj
QaApp.csproj : error NU1008: The following PackageReference items cannot define a value for Version: Qa.Nonexistent.Package. Projects using Central Package Management must define a Version value on a PackageVersion item. ...
  Failed to restore ...\QaApp\QaApp.csproj (in 82 ms).
exit=1

$ uno-devserver start
Uno Platform DevServer CLI - Version 7.0.0-dev.2345
Starting DevServer in direct mode: ...\Uno.UI.RemoteControl.Host.exe --httpPort 62607 --solution ...\QaApp.sln ...
exit=0 (1.2 s)

$ uno-devserver health
Status: Healthy
Connection: Unknown
Solution: ...\QaApp.sln
Resolution: CurrentDirectory
Selection: UserSelected
Tools: 0
Active Servers:
- PID: <pid> (Port 62607)
exit=0

Expected behavior

When the solution can't be restored, start should fail, or at least warn, and name the restore error (for example the NU code and the project). health should not report Healthy for that solution.

How to reproduce it (as minimally and precisely as possible)

  1. dotnet new unoapp -n QaApp -preset blank -platforms desktop, then git init in the folder.
  2. In QaApp/QaApp.csproj, before </Project>, add:
    <ItemGroup><PackageReference Include="Qa.Nonexistent.Package" Version="1.2.3" /></ItemGroup>
  3. dotnet restore QaApp/QaApp.csproj fails with NU1008.
  4. Run uno-devserver start, then uno-devserver health.
  5. start exits 0, health says Status: Healthy, and neither mentions the restore failure.

Reproduced in every run: 5 of 5 on 6.7.30, 4 of 4 on 7.0.0-dev.81 and 1 of 1 on 7.0.0-dev.89.

Workaround

Run dotnet restore or build the solution first, and read its errors.

Affected platforms

Desktop (Windows). The Dev Server CLI behaviour does not depend on the target.

Uno.Sdk version (and other relevant versions)

  • Uno.Sdk / Uno.Templates 7.0.0-dev.89 (Dev Server host 7.0.0-dev.2428), 7.0.0-dev.81 (host 7.0.0-dev.2347) and 6.7.30 (host 6.7.135)
  • uno-devserver CLI 7.0.0-dev.2345
  • .NET SDK 10.0.401, Windows 11 Pro (26200)

IDE version

None (CLI only)

Anything else we need to know?

  • Found by automated QA of the Uno SDK. The test expects either a failed start or a non-Healthy health, plus a message naming the restore failure.
  • Only the NU1008 case was tested. Other restore failures (for example an unknown package id) were not.
  • We did not check whether Hot Reload works for this solution afterwards.
  • Tools: 0 is not related to the restore failure: health reports Tools: 0 for healthy projects too (a separate issue).
  • Related: [DevServer CLI] disco: tell a not-yet-restored Uno.Sdk apart from one that cannot be restored #25497, which asks disco to tell an Uno.Sdk that isn't restored yet apart from one that can't be restored.
  • Suggested labels: kind/bug, area/hot-reload.

Activity

  1. added
    kind/bug
    on Oct 25, 2026
  2. added this to the Platform 7.0 milestone on Oct 25, 2026
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

    kind/bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions