Skip to content

[Docs][dotnet cmd] Wrong / not working cmd "dotnet add package" without specifying the --project (Solution included!) #20939

Closed

Description

@DevTKSS

I did always wonder, why no cmd like the dotnet add package worked actually, which I did sometimes find in this or every other documentation.

Example command the docs are including:

dotnet add package Mono.AotProfiler.Android

as this is just quick example reference, I would suggest to run a quick text search for each repo producing docs and update these advises accordingly.

Solution:

Update those command advises to include the --Project MyUnoApp while this Name here stands in the end for the Folder our actual project to add this to can be found. no actual need to full type it as long as there are not two csproj files.

For example, discovered this while adding some for my Server Project, gathered by the uno template using the --server 👍

PS C:\Users\Sonja\source\sample apps\DevTKSS.MyManufacturerERP> dotnet add package Duende.AccessTokenManagement --project DevTKSS.MyManufacturerERP.Server

Build succeeded in 1,0s

Works with CPM for the Packages I used so far to add

But here is an Issue on NuGet I found and added this for me working bug solution: NuGet/Home#12967
I am not sure for which particular these compile errors should count, but for me the command is working fine if I use it like this

Activity

  1. jeromelaban commented on Jul 14, 2025

    @jeromelaban
    Member

    Thanks for the report! Indeed this is a small change in the docs that would make sense just to add the --project.

  2. github-actions commented on Apr 30, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  3. locked as resolved and limited conversation to collaborators on Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions