Home

WebApplication usage in LinqPad

edited July 2023

I am having trouble using the new C# template in LinqPad. The template starts with var builder = WebApplication.CreateBuilder(args);, which doesn't seem to work in LinqPad.

Here is my .csproj for reference:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net7.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
  </PropertyGroup>

</Project>

I would appreciate guidance on how to overcome this issue.

Thank you in advance for your assistance.

Comments

Sign In or Register to comment.