Skip to content

Use of dotnet run instead of dotnet path/file.dll #9198

@Mizux

Description

@Mizux

In https://docs.microsoft.com/en-us/dotnet/core/tools/index?tabs=netcore2x#command-structure
Why don't using (and advertise) dotnet run instead of calling the dll directly ?
i.e. I would rework the example like this

dotnet new console
dotnet build
dotnet run

Also depending on platform (OS), rid, Target Framework Moniker, build Type (Debug default) the .dll can be anywhere and you don't explain where to find it ;)
e.g. on my debian it will be dotnet bin/Debug/netcoreapp2.1/plop.dll

find . -type f -name "*.dll"
./bin/Debug/netcoreapp2.1/plop.dll
./obj/Debug/netcoreapp2.1/plop.dll

or in obj ?

Bonus point: dotnet run cannot be use if you change the default output directory since there is no option --output for dotnet run ontrary to dotnet build ....

related to #4243 ?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions