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?

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-ooption,-ooption 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
.csprojfile?