File tree Expand file tree Collapse file tree 6 files changed +5
-28
lines changed
daemon-app/minimal-web-api Expand file tree Collapse file tree 6 files changed +5
-28
lines changed Original file line number Diff line number Diff line change 1111 . AddMicrosoftIdentityWebApi ( builder . Configuration . GetSection ( "AzureAd" ) ) ;
1212
1313builder . Services . AddControllers ( ) ;
14- // Learn more about configuring Swagger/ OpenAPI at https://aka.ms/aspnetcore/swashbuckle
14+ // Learn more about configuring OpenAPI at https://learn.microsoft.com/aspnet/core/fundamentals/openapi/aspnetcore-openapi
1515builder . Services . AddEndpointsApiExplorer ( ) ;
16- builder . Services . AddSwaggerGen ( ) ;
1716
1817var app = builder . Build ( ) ;
1918
20- // Configure the HTTP request pipeline.
21- if ( app . Environment . IsDevelopment ( ) )
22- {
23- app . UseSwagger ( ) ;
24- app . UseSwaggerUI ( ) ;
25- }
26-
2719app . UseHttpsRedirection ( ) ;
2820
2921app . UseAuthorization ( ) ;
Original file line number Diff line number Diff line change 1313 "commandName" : " Project" ,
1414 "dotnetRunMessages" : true ,
1515 "launchBrowser" : true ,
16- "launchUrl" : " swagger" ,
1716 "applicationUrl" : " https://localhost:7082;http://localhost:5299;" ,
1817 "environmentVariables" : {
1918 "ASPNETCORE_ENVIRONMENT" : " Development"
2221 "IIS Express" : {
2322 "commandName" : " IISExpress" ,
2423 "launchBrowser" : true ,
25- "launchUrl" : " swagger" ,
2624 "environmentVariables" : {
2725 "ASPNETCORE_ENVIRONMENT" : " Development"
2826 }
Original file line number Diff line number Diff line change 99 </PropertyGroup >
1010
1111 <ItemGroup >
12- <PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 7.0.10" />
13- <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 6.5.0" />
12+ <PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 8.0.10" />
1413 </ItemGroup >
1514
1615 <ItemGroup Condition =" '$(UseWIP)' == 'false' " >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net7 .0</TargetFrameworks >
4+ <TargetFrameworks >net8 .0</TargetFrameworks >
55 <Nullable >enable</Nullable >
66 <ImplicitUsings >enable</ImplicitUsings >
77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 7.0.2" />
11- <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 6.4.0" />
10+ <PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 8.0.10" />
1211 </ItemGroup >
1312
1413 <ItemGroup Condition =" '$(UseWip)' != 'true'" >
Original file line number Diff line number Diff line change 55// Add services to the container.
66
77builder . Services . AddControllers ( ) ;
8- // Learn more about configuring Swagger/ OpenAPI at https://aka.ms/aspnetcore/swashbuckle
8+ // Learn more about configuring OpenAPI at https://learn.microsoft.com/aspnet/core/fundamentals/openapi/aspnetcore-openapi
99builder . Services . AddEndpointsApiExplorer ( ) ;
10- builder . Services . AddSwaggerGen ( ) ;
1110
1211builder . Services . AddMicrosoftIdentityWebApiAuthentication ( builder . Configuration ) ;
1312
1413var app = builder . Build ( ) ;
1514
16- // Configure the HTTP request pipeline.
17- if ( app . Environment . IsDevelopment ( ) )
18- {
19- app . UseSwagger ( ) ;
20- app . UseSwaggerUI ( ) ;
21- }
22-
2315app . UseHttpsRedirection ( ) ;
2416
2517app . UseAuthorization ( ) ;
Original file line number Diff line number Diff line change 1313 "commandName" : " Project" ,
1414 "dotnetRunMessages" : true ,
1515 "launchBrowser" : true ,
16- "launchUrl" : " swagger" ,
1716 "applicationUrl" : " http://localhost:5047" ,
1817 "environmentVariables" : {
1918 "ASPNETCORE_ENVIRONMENT" : " Development"
2322 "commandName" : " Project" ,
2423 "dotnetRunMessages" : true ,
2524 "launchBrowser" : true ,
26- "launchUrl" : " swagger" ,
2725 "applicationUrl" : " https://localhost:7060;http://localhost:5047" ,
2826 "environmentVariables" : {
2927 "ASPNETCORE_ENVIRONMENT" : " Development"
3230 "IIS Express" : {
3331 "commandName" : " IISExpress" ,
3432 "launchBrowser" : true ,
35- "launchUrl" : " swagger" ,
3633 "environmentVariables" : {
3734 "ASPNETCORE_ENVIRONMENT" : " Development"
3835 }
You can’t perform that action at this time.
0 commit comments