title: Passing NuGet 'Pack' arguments in Azure DevOps Build Pipeline
body: <p>In my Azure DevOps Build pipeline, I have added a NuGet task of <em>pack</em> command type (version 2.*).</p>
  
  <p>I am trying to pass the <code>-Exclude ***.tt</code> argument so that it excludes these files when referenced from another projects. However, in the generated NuGet package, those .tt files are appearing in the Content folder.</p>
  
  <p>The command written in the log of the host is: </p>
  
  <pre><code>nuget.exe pack PROJECTNAME.csproj -NonInteractive -OutputDirectory SOME_OUTPUTPATH -Properties "Configuration=release;\"-Exclude ***.tt\"" -Verbosity Detailed
  </code></pre>
  
  <p>As you see, exclude is not part of the properties but should be as a separate <code>-Exclude</code> argument.</p>
  
  <p>Any idea how may I achieve this? Many thanks!</p>
  
  <p>Added a screenshot and YAML:</p>
  
  <p><a href="https://i.stack.imgur.com/uPPXZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uPPXZ.png" alt="enter image description here"></a></p>
  
  <pre><code>steps:
  - task: NuGetCommand@2
    displayName: 'NuGet pack'
    inputs:
      command: pack
      packagesToPack: ProjectName.csproj
      buildProperties: '-Exclude ***.tt'
  </code></pre>