bug
This commit is contained in:
parent
d080ccfd05
commit
9719693571
12
asg_form.sln
12
asg_form.sln
@ -12,10 +12,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "解决方案项", "解决
|
||||
main.md = main.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "asg_form.AppHost", "asg_form.AppHost\asg_form.AppHost.csproj", "{6689650E-6BBD-4F79-AD60-18467AD94EE1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "asg_form.ServiceDefaults", "asg_form.ServiceDefaults\asg_form.ServiceDefaults.csproj", "{D8E4D33B-B189-4419-AE8C-417160139B8C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -26,14 +22,6 @@ Global
|
||||
{6BBCCC2C-1B0A-4456-B9E5-B0EF2B156D8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6BBCCC2C-1B0A-4456-B9E5-B0EF2B156D8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6BBCCC2C-1B0A-4456-B9E5-B0EF2B156D8B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6689650E-6BBD-4F79-AD60-18467AD94EE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6689650E-6BBD-4F79-AD60-18467AD94EE1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6689650E-6BBD-4F79-AD60-18467AD94EE1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6689650E-6BBD-4F79-AD60-18467AD94EE1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D8E4D33B-B189-4419-AE8C-417160139B8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D8E4D33B-B189-4419-AE8C-417160139B8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D8E4D33B-B189-4419-AE8C-417160139B8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D8E4D33B-B189-4419-AE8C-417160139B8C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Security.Claims;
|
||||
using static asg_form.Controllers.提交表单;
|
||||
|
||||
namespace asg_form.Controllers
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Security.Claims;
|
||||
using static 所有队伍;
|
||||
using static allteam1;
|
||||
|
||||
namespace asg_form.Controllers.Team
|
||||
{
|
||||
|
@ -4,7 +4,6 @@ using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Security.Claims;
|
||||
using static 所有队伍;
|
||||
|
||||
namespace asg_form;
|
||||
public class blog : ControllerBase
|
||||
|
@ -21,7 +21,6 @@ using System.Net.Mail;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using static asg_form.Controllers.excel;
|
||||
using static 所有队伍;
|
||||
using Manganese.Array;
|
||||
|
||||
namespace asg_form.Controllers
|
||||
@ -50,7 +49,7 @@ namespace asg_form.Controllers
|
||||
}
|
||||
|
||||
// [Route("api/updateform/")]
|
||||
public class 提交表单 : ControllerBase
|
||||
public class updateform1 : ControllerBase
|
||||
{
|
||||
private static readonly string[] Summaries = new[]
|
||||
{
|
||||
@ -147,10 +146,7 @@ namespace asg_form.Controllers
|
||||
}
|
||||
private readonly Logger logger = LogManager.GetCurrentClassLogger();
|
||||
private readonly IHubContext<room> hubContext;
|
||||
public 提交表单(IHubContext<room> hubContext)
|
||||
{
|
||||
this.hubContext= hubContext;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[Route("api/v1/websocket/")]
|
||||
@ -529,7 +525,7 @@ namespace asg_form.Controllers
|
||||
|
||||
|
||||
|
||||
public class 所有队伍 : ControllerBase
|
||||
public class allteam1 : ControllerBase
|
||||
{
|
||||
private static readonly string[] Summaries = new[]
|
||||
{
|
||||
|
@ -1,6 +1,5 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using static 所有队伍;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using static asg_form.blog;
|
||||
using System.Security.Claims;
|
||||
|
@ -1,31 +0,0 @@
|
||||
# 请参阅 https://aka.ms/customizecontainer 以了解如何自定义调试容器,以及 Visual Studio 如何使用此 Dockerfile 生成映像以更快地进行调试。
|
||||
|
||||
# 此阶段用于在快速模式(默认为调试配置)下从 VS 运行时
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||
USER $APP_UID
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
|
||||
|
||||
# 此阶段用于生成服务项目
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["asg_form/asg_form.csproj", "asg_form/"]
|
||||
COPY ["asg_form.ServiceDefaults/asg_form.ServiceDefaults.csproj", "asg_form.ServiceDefaults/"]
|
||||
RUN dotnet restore "./asg_form/asg_form.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/asg_form"
|
||||
RUN dotnet build "./asg_form.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
# 此阶段用于发布要复制到最终阶段的服务项目
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "./asg_form.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
# 此阶段在生产中使用,或在常规模式下从 VS 运行时使用(在不使用调试配置时为默认值)
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "ASG后端.dll"]
|
@ -44,6 +44,17 @@
|
||||
},
|
||||
"publishAllPorts": true,
|
||||
"useSSL": true
|
||||
},
|
||||
"Container (.NET SDK)": {
|
||||
"commandName": "SdkContainer",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_HTTPS_PORTS": "8081",
|
||||
"ASPNETCORE_HTTP_PORTS": "8080"
|
||||
},
|
||||
"publishAllPorts": true,
|
||||
"useSSL": true
|
||||
}
|
||||
},
|
||||
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||
|
@ -10,6 +10,9 @@
|
||||
<PublishAot>False</PublishAot>
|
||||
<UserSecretsId>90d25478-1c0b-47a3-bc23-326e0e4905d9</UserSecretsId>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<RuntimeIdentifiers>linux-x64</RuntimeIdentifiers>
|
||||
<EnableSdkContainerDebugging>True</EnableSdkContainerDebugging>
|
||||
<ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:8.0</ContainerBaseImage>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@ -65,7 +68,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\asg_form.ServiceDefaults\asg_form.ServiceDefaults.csproj" />
|
||||
<ContainerPort Include="8081" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Loading…
x
Reference in New Issue
Block a user