Skip to content

Commit d4a93d4

Browse files
committed
refactor: 修改使用 AspNetCore 的方式
1 parent 17b0431 commit d4a93d4

File tree

10 files changed

+30
-110
lines changed

10 files changed

+30
-110
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,6 @@ FodyWeavers.xsd
368368

369369
# docker 镜像的文件夹
370370
/working
371-
/cache
371+
/cache
372+
373+
working

BangbangAsp/BangbangAsp.csproj

Lines changed: 0 additions & 9 deletions
This file was deleted.

BangbangAsp/Program.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

BangbangAsp/Properties/launchSettings.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

BangbangAsp/appsettings.Development.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

BangbangAsp/appsettings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

CSharp-OpenBMCLAPI.sln

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docker compose", "Docker co
2525
docker-compose.yml = docker-compose.yml
2626
EndProjectSection
2727
EndProject
28-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BangbangAsp", "BangbangAsp\BangbangAsp.csproj", "{3ABB5430-C505-42F6-A7FD-AAB8FFD94063}"
29-
EndProject
3028
Global
3129
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3230
Debug|Any CPU = Debug|Any CPU
@@ -37,9 +35,6 @@ Global
3735
{F01E0E3F-BF3E-4D0D-BCB7-7DFEF1926310}.Debug|Any CPU.Build.0 = Debug|Any CPU
3836
{F01E0E3F-BF3E-4D0D-BCB7-7DFEF1926310}.Release|Any CPU.ActiveCfg = Release|Any CPU
3937
{F01E0E3F-BF3E-4D0D-BCB7-7DFEF1926310}.Release|Any CPU.Build.0 = Release|Any CPU
40-
{3ABB5430-C505-42F6-A7FD-AAB8FFD94063}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41-
{3ABB5430-C505-42F6-A7FD-AAB8FFD94063}.Debug|Any CPU.Build.0 = Debug|Any CPU
42-
{3ABB5430-C505-42F6-A7FD-AAB8FFD94063}.Release|Any CPU.ActiveCfg = Release|Any CPU
4338
EndGlobalSection
4439
GlobalSection(SolutionProperties) = preSolution
4540
HideSolutionNode = FALSE

CSharp-OpenBMCLAPI/CSharp-OpenBMCLAPI.csproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
@@ -10,21 +10,19 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="log4net" Version="3.0.3" />
13+
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.3.0" />
1314
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1415
<PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.3" />
1516
<PackageReference Include="SaltWood.TeraIO" Version="1.1.0" />
1617
<PackageReference Include="ShellProgressBar" Version="5.2.0" />
1718
<PackageReference Include="SocketIOClient" Version="3.1.2" />
1819
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="9.0.1" />
20+
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
1921
<PackageReference Include="System.Text.Json" Version="9.0.1" />
2022
<PackageReference Include="YamlDotNet" Version="16.3.0" />
2123
<PackageReference Include="ZstdSharp.Port" Version="0.8.4" />
2224
</ItemGroup>
2325

24-
<ItemGroup>
25-
<ProjectReference Include="..\BangbangAsp\BangbangAsp.csproj" />
26-
</ItemGroup>
27-
2826
<ItemGroup>
2927
<None Update=".env.json">
3028
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"profiles": {
3+
"CSharp-OpenBMCLAPI": {
4+
"commandName": "Project",
5+
"launchBrowser": true,
6+
"environmentVariables": {
7+
"ASPNETCORE_ENVIRONMENT": "Development"
8+
},
9+
"applicationUrl": "https://localhost:3416;http://localhost:3417"
10+
}
11+
}
12+
}

CSharp-OpenBMCLAPI/web.config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<location path="." inheritInChildApplications="false">
4+
<system.webServer>
5+
<handlers>
6+
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
7+
</handlers>
8+
<aspNetCore processPath=".\CSharp-OpenBMCLAPI.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
9+
</system.webServer>
10+
</location>
11+
</configuration>
12+
<!--ProjectGuid: F01E0E3F-BF3E-4D0D-BCB7-7DFEF1926310-->

0 commit comments

Comments
 (0)