Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
Can you help it below? How to fix it? Originally I was with this error "The type or namespace name 'OpenApi' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?)"
show your project file. should look like:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.2" />
</ItemGroup>
</Project>
also try (after checking project file):
% dotnet restore
% dotnet build
Here is the project details