In .NET 11, preview 1, a new webapi project created with dotnet new:
contains a .http file with extraneous lines:
@buggy_HostAddress = http://localhost:5157
#if (EnableOpenAPI) <<< extraneous
GET {{buggy_HostAddress}}/openapi/v1.json
Accept: application/json
###
#endif <<< extraneous
GET {{buggy_HostAddress}}/weatherforecast/
Accept: application/json
###
This problem was very likely introduced by this recent PR: #64951
In .NET 11, preview 1, a new webapi project created with dotnet new:
contains a .http file with extraneous lines:
This problem was very likely introduced by this recent PR: #64951