title: MSBuild - want to get the output assembly
body: <p>I have a <strong>.targets file</strong> in a <strong>folder named .pack</strong> I have this:</p>
  
  <pre><code>  &lt;PropertyGroup&gt;
      &lt;TaskAssembly&gt;$(OutputPath)netstandard2.1\Test.dll&lt;/TaskAssembly&gt;
    &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>Why instead of <code>MyProject\bin\Debug\netstandard2.1\MyProject.dll</code> it locates like the below line?</p>
  
  <pre><code>MyProject\.pack\bin\Debug\netstandard2.1\MyProject.dll
  </code></pre>
  
  <p>Why <strong>.pack</strong> is there!?</p>
  
  <p>Then wanted to use it with a <strong>Using task</strong></p>
  
  <pre><code>  &lt;UsingTask
      TaskName="brand.ProBuild.Tasks.TestFunction"
      AssemblyFile="$(TaskAssembly)" 
      /&gt;
  </code></pre>
  
  <p>Defined as inline address, played with slashes, cleared bin/obj, restarted, don't why it can't understand some addresses.</p>
  
  <p>Defined and used several path variables in my targets files, some working correctly and some are troublesome especially when want to use parents or some problems with slashes '/', don't know maybe some addresses are working randomly. But what is wrong with the $(OutputPath) ?!</p>
  
  <p>Visual-studio 2019, .Net Standard 2.1 (It has multiple targets I want to get that specific dll)</p>