diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Program.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Program.cs index 7c0553801e4a..05bd50938689 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Program.cs +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Program.cs @@ -8,10 +8,7 @@ #if (OrganizationalAuth || IndividualB2CAuth) using Microsoft.Identity.Web; #endif -#if (EnableOpenAPI) -using Microsoft.OpenApi.Models; -#endif -#if (OrganizationalAuth || IndividualB2CAuth || GenerateGraph || EnableOpenAPI) +#if (OrganizationalAuth || IndividualB2CAuth || GenerateGraph) #endif var builder = WebApplication.CreateBuilder(args);