skip to Main Content

Docker run command like in Visual Studio

When running a Standard ASP.NET Core Web API project created by Visual Studio 2022 with docker option enabled, connecting to the server via browser is possible by using https://localhost:65215/swagger/index.html (which even pops up by itself). When running the container with…

VIEW QUESTION

No operations defined in spec! asp .net core 3.1, swagger is not showing controller – Asp.net

I tried this and also this several links but not getting the answer. this is my startup.cs file public void ConfigureServices(IServiceCollection services) { services.AddControllers(); services.AddCommonService(Configuration); services.AddSecurityServiceRepositories(); services.AddSwaggerService(); } public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.UseSwaggerService(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage();…

VIEW QUESTION
Back To Top
Search