Skip to content

IHostingEnvironment object gets a difference in path #6890

@netnr

Description

@netnr

1628552182

1630334e4b

In the Linux system, the dotnet is started in different paths. The WebRootPath attribute of the IHostingEnvironment object is different from the ContentRootPath attribute. The dotnet startup path is obtained. Shouldn't it always be the path of the site directory?

CentOS7
dotnet --version 2.2.103

Code
https://github.com/netnr/test/blob/master/src/Netnr.Test/Controllers/PathController.cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-hostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions