Skip to content

Commit ffb6d72

Browse files
committed
chore: remove Swashbuckle.AspNetCore
1 parent 36fd9c5 commit ffb6d72

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/IntelliSenseLocalizer/Properties/launchSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
},
77
"IntelliSenseLocalizer - build": {
88
"commandName": "Project",
9-
"commandLineArgs": "[debug] build -p Microsoft.NETCore.App.Ref -m net7.0 -pc 4 -ll 2 -cc 2 -sl \"-------- 以下为原始注释 --------\""
9+
"commandLineArgs": "[debug] build -p Microsoft.NETCore.App.Ref -m net8.0 -pc 4 -ll 2 -cc 2 -sl \"-------- 以下为原始注释 --------\""
1010
},
1111
"IntelliSenseLocalizer - install": {
1212
"commandName": "Project",
1313
"commandLineArgs": "[debug] install auto -ctn true -cc 2"
1414
},
1515
"IntelliSenseLocalizer - uninstall": {
1616
"commandName": "Project",
17-
"commandLineArgs": "[debug] uninstall net6.0 zh-cn"
17+
"commandLineArgs": "[debug] uninstall net8.0 zh-cn"
1818
},
1919
"IntelliSenseLocalizer - clear": {
2020
"commandName": "Project",

src/SimpleTranslateServer/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
if (app.Environment.IsDevelopment())
3737
{
3838
app.UseSwagger();
39-
app.UseSwaggerUI();
39+
app.MapSwaggerUI(openApiEndpoint: "/swagger/v1/swagger.json");
4040
}
4141

4242
#endif

src/SimpleTranslateServer/SimpleTranslateServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<ItemGroup Condition="'$(AotPublishing)' != 'true'">
1818
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.*" />
19-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
19+
<PackageReference Include="SwaggerUI.AspNetCore" Version="5.29.0" />
2020
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.6.2" />
2121
</ItemGroup>
2222

0 commit comments

Comments
 (0)