title: Migrating ASMX web service to .NET Core
body: <p>I am migrating an .NET 4.72 website to .NET Core 6.0. I have an ASMX web service. In .NET Core, I know that System.Web.Services.WebService does not exist. How do I migrate this code? Do I create a .NET 4.72 class library and reference it in my web project?</p>
  <p>Here is my code:</p>
  <pre><code>  [WebService(Namespace = &quot;http://developer.intuit.com/&quot;, Name = &quot;QBWebService&quot;, Description = &quot;QuickBooks Web Service Connector&quot;)]
  public class QBWebService : System.Web.Services.WebService
  </code></pre>