title: c# error CS1056: Unexpected character '$' with Jenkins or MSbuild
body: <p>I have a requirement to work with Jenkins for Continues integration, in my code I have written code like </p>
  
  <pre><code>throw new ArgumentNullException($"The {nameof(Id)} cannot be null");
  </code></pre>
  
  <p>If I build the application it is building successfully but if I build this same application using MsBuild(or) Jenkins,</p>
  
  <p>I am getting error like  </p>
  
  <pre><code>Web\WebSharedHelper.cs "C:\WINDOWS\TEMP\.NETFramework,Version=v4.5.2.AssemblyAttributes.cs"
  Security\ApiUserToken.cs(46,32): error CS1056: Unexpected character '$' [C:\Program Files (x86)\Jenkins\workspace\OssiaCICD\common\trunk\Cota.Common.Core\Cota.Common.Core.csproj]
  Security\ApiUserToken.cs(58,32): error CS1056: Unexpected character '$' [C:\Program Files (x86)\Jenkins\workspace\OssiaCICD\common\trunk\Cota.Common.Core\Cota.Common.Core.csproj]
  Security\ApiUserToken.cs(62,26): error CS1056: Unexpected character '$' [C:\Program Files (x86)\Jenkins\workspace\OssiaCICD\common\trunk\Cota.Common.Core\Cota.Common.Core.csproj]
  Done Building Project "C:\Program Files (x86)\Jenkins\workspace\OssiaCICD\common\trunk\Cota.Common.Core\Cota.Common.Core.csproj" (default targets) -- FAILED.
  </code></pre>
  
  <p>I am using v4.0.30319 FrameWork for MSBuild.</p>