Mvc icon indicating copy to clipboard operation
Mvc copied to clipboard

$(TargetPath) or $(TargetDir) are empty on PostBuild event

Open marcusien opened this issue 9 years ago • 2 comments

Hi,

There's an issue with post build event on netstandard library. when executing a post build event, the $(TargetDir) et $(TargetPath) macros are empty while they are not empty on the "post build event command line" wizard on visual studio.

You can reproduce it easily by

  • creating a netstandard project library
  • put an echo "Target path is : " $(TargetPath)"
  • then build the project
  • take a look at output window

This works for $(SolutionDir) or other macros

marcusien avatar Mar 30 '17 08:03 marcusien

Can you file that bug here http://github.com/dotnet/sdk

davidfowl avatar Mar 30 '17 08:03 davidfowl

Yep, it's done :)

The link => https://github.com/dotnet/sdk/issues/1055

marcusien avatar Mar 30 '17 08:03 marcusien