Skip to content

how can i get the abs publish dir in csproj? #678

@liesauer

Description

@liesauer

because of the changes between 2.x and 3.x, i can not find a compatible formula to calcute the right abs publish dir.

i have tried $(PublishDir) and $([System.IO.Path]::GetFullPath('$(PublishDir)')), but it always be wrong in some situations(build with 2.x sdk or build with 3.x sdk, with or without -o option, -o option is absolute dir or relative dir)

but i have realized that the dir output by sdk always be right, so how can i get this dir in my .csproj file?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions