When I add a post build event to my project and try to use a macro in the Edit Post-Build ... section, it shows the value of each macro

However, when the assembly starts the value, empty is displayed.
the following was created using echo: "Project path:" $ (ProjectPath) "end of path"

any macro value i use seems to be null
I am using the following csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard1.6</TargetFramework> <AssemblyName>Client</AssemblyName> <PackageId>Client</PackageId> <PackageTags>pkgname</PackageTags> <NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion> <PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback> <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> <GeneratePackageOnBuild>True</GeneratePackageOnBuild> <PostBuildEvent> echo on echo "The project path is:" $(ProjectPath) "end of path" dotnet pack $(ProjectPath) </PostBuildEvent> </PropertyGroup> <ItemGroup> <PackageReference Include="NoSQL" Version="1.0.4.3" /> </ItemGroup> </Project>
I tried manually editing csproj to no avail. the full path to csproj in the post build event does not work.
I confirmed that this happens on multiple machines with VS / 15.0.0 + 26228.9
source share