Open up generated project file Org.OpenAPITools.csproj and value of output type to the following:
<OutputType>Exe</OutputType>
Install and Update NuGet Packages
First, run the following dotnet CLI command inside the generated project to restore the NuGet packages:
dotnet restore
Then use the following command to list all installed NuGet Packages:
dotnet list package
The following should be listed:
Project 'Org.OpenAPITools' has the following package references
[net8.0]:
Top-level Package Requested Resolved
> JsonSubTypes 2.0.1 2.0.1
> Newtonsoft.Json 13.0.3 13.0.3
> Polly 8.1.0 8.1.0
> RestSharp 110.2.0 110.2.0
Project 'Org.OpenAPITools.Test' has the following package references
[net8.0]:
Top-level Package Requested Resolved
> Microsoft.NET.Test.Sdk 17.9.0 17.9.0
> xunit 2.7.0 2.7.0
> xunit.runner.visualstudio 2.5.7 2.5.7
Now navigate into the following directory "src\Org.OpenAPITools" and execute the following commands to install and update the necessary NuGet packages: