title: Visual Studio 2017 macros show empty on build but not in macro selector
body: <p>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 </p>
  
  <p><img src="https://i.stack.imgur.com/rDuFY.png" alt="post build events"></p>
  
  <p>However when the build runs the value show blank</p>
  
  <p>the following was generated using  echo "The project path is:" $(ProjectPath) "end of path"</p>
  
  <p><img src="https://i.stack.imgur.com/oIF6C.png" alt="build output"></p>
  
  <p>any macro value I use seems to come up null</p>
  
  <p>I am using the following csproj</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netstandard1.6&lt;/TargetFramework&gt;
      &lt;AssemblyName&gt;Client&lt;/AssemblyName&gt;
      &lt;PackageId&gt;Client&lt;/PackageId&gt;
      &lt;PackageTags&gt;pkgname&lt;/PackageTags&gt;
      &lt;NetStandardImplicitPackageVersion&gt;1.6.1&lt;/NetStandardImplicitPackageVersion&gt;
      &lt;PackageTargetFallback&gt;$(PackageTargetFallback);dnxcore50&lt;/PackageTargetFallback&gt;
      &lt;GenerateAssemblyConfigurationAttribute&gt;false&lt;/GenerateAssemblyConfigurationAttribute&gt;
      &lt;GenerateAssemblyCompanyAttribute&gt;false&lt;/GenerateAssemblyCompanyAttribute&gt;
      &lt;GenerateAssemblyProductAttribute&gt;false&lt;/GenerateAssemblyProductAttribute&gt;
      &lt;GeneratePackageOnBuild&gt;True&lt;/GeneratePackageOnBuild&gt;
      &lt;PostBuildEvent&gt;
        echo on
        echo "The project path is:" $(ProjectPath) "end of path"
        dotnet pack $(ProjectPath)
      &lt;/PostBuildEvent&gt;
    &lt;/PropertyGroup&gt;
  
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="NoSQL" Version="1.0.4.3" /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  
  <p>I have tried manually editing the csproj to no avail. a full path to the csproj in the post build event does work.</p>
  
  <p>I have confirmed that this occurs on multiple machines running VS/15.0.0+26228.9</p>