title: NuGet unable to extract metadata from assembly with XmlnsDefinitionAttribute
body: <p>I am trying to add XmlnsDefinitionAttributes to my assembly.  I use TeamCity to manage my projects.  There is a NuGet Package Pack step in my build configuration.  </p>
  
  <p>Here is the relevant section of a failed build log.</p>
  
  <pre><code>[16:42:08]: Starting: C:\Windows\system32\cmd.exe /c C:\BuildAgent\tools\NuGet.CommandLine.1.5.20905.5.nupkg\tools\NuGet.exe pack C:\BuildAgent\work\5f0e65f22ca1527\MyProject\MyProject.csproj -OutputDirectory \\server\Packages -BasePath C:\BuildAgent\work\5f0e65f22ca1527 -Verbose -Version 1.0.97.1034 -Symbols -Properties Configuration=Release
  [16:42:08]: in directory: C:\BuildAgent\work\5f0e65f22ca1527
  [16:42:08]: Attempting to build package from 'MyProject.csproj'.
  [16:42:09]: Packing files from 'C:\BuildAgent\work\5f0e65f22ca1527\MyProject\Bin\Release'.
  [16:42:09]: WARNING: Unable to extract metadata from 'MyProject.dll'.
  [16:42:09]: Using 'MyProject.nuspec' for metadata.
  [16:42:09]: The replacement token 'title' has no value.
  [16:42:09]: Process exited with code 1
  </code></pre>
  
  <p>The same section for a successful build looks like this.</p>
  
  <pre><code>[16:42:54]: Starting: C:\Windows\system32\cmd.exe /c C:\BuildAgent\tool\NuGet.CommandLine.1.5.20905.5.nupkg\tools\NuGet.exe pack C:\BuildAgent\work\5f0e65f22ca1527\MyProject\MyProject.csproj -OutputDirectory \\server\Packages -BasePath C:\BuildAgent\work\5f0e65f22ca1527 -Verbose -Version 1.0.98.1035 -Symbols -Properties Configuration=Release
  [16:42:54]: in directory: C:\BuildAgent\work\5f0e65f22ca1527
  [16:42:54]: Attempting to build package from 'MyProject.csproj'.
  [16:42:54]: Packing files from 'C:\BuildAgent\work\5f0e65f22ca1527\MyProject\Bin\Release'.
  [16:42:54]: Using 'MyProject.nuspec' for metadata.
  </code></pre>
  
  <p>At this point it outputs all of the settings.</p>
  
  <p>My XmlnsDefinitionAttribute is defined in AssemblyInfo.cs as follows</p>
  
  <pre><code>[assembly: XmlnsDefinition("http://schemas.company.com/myproject", "MyProject")]
  </code></pre>
  
  <p>Any ideas as to what I am doing wrong?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Here is my full AssemblyInfo.cs</p>
  
  <pre><code>using System.Reflection;
  using System.Runtime.InteropServices;
  using System.Windows.Markup;
  
  [assembly: AssemblyTitle("MyProject")]
  [assembly: AssemblyDescription("MyProject Description")]
  [assembly: AssemblyConfiguration("")]
  [assembly: AssemblyCompany("Microsoft")]
  [assembly: AssemblyProduct("MyProject")]
  [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
  [assembly: AssemblyTrademark("")]
  [assembly: AssemblyCulture("")]
  
  [assembly: ComVisible(false)]
  
  [assembly: Guid("23774732-4f22-4366-a150-03745e93111b")]
  
  [assembly: AssemblyVersion("1.5.2")]
  [assembly: AssemblyFileVersion("1.5.2")]
  
  [assembly: XmlnsDefinition("http://schemas.company.com/myproject", "MyProject")]
  [assembly: XmlnsDefinition("http://schemas.company.com/myproject", "MyProject.Namespace1")]
  [assembly: XmlnsDefinition("http://schemas.company.com/myproject/newschema", "MyProject.NewSchema")]
  [assembly: XmlnsDefinition("http://schemas.company.com/myproject/newschema", "MyProject.NewSchema.Namespace1")]
  </code></pre>
  
  <p><strong>Edit 2</strong></p>
  
  <p>I installed NuGet locally and I am getting the same error.  TeamCity does not appear to have any effect.</p>