title: Updating Visual Studio Extension for 2022 - Field not found
body: <p>I have a Visual Studio extension that we use internally that I am trying to update to work with VS 2022. Amongst other things, it should connect to Team Foundation and send tickets. However, I'm getting a runtime error:</p>
  <blockquote>
  <p>System.MissingFieldException: 'Field not found: 'Microsoft.VisualStudio.Services.Common.IdentityAttributeTags.AccountName'.'</p>
  </blockquote>
  <p>Which I'm pretty sure is related to some mismatch in Visual Studio assemblies, but I'm having trouble figuring out exactly which are the correct assemblies and NuGet packages to reference to make this work.</p>
  <p>The error occurs on this line:</p>
  <pre><code>projectCollection = new TfsTeamProjectCollection(url, cred);    
  workItems = projectCollection.GetService&lt;WorkItemStore&gt;();  // &lt;-- here
  </code></pre>