Server업데이트

This commit is contained in:
pandoli365 2023-08-21 11:10:01 +09:00 committed by pandoli365
commit abfc677786
65 changed files with 1088 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

25
Server.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33801.468
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server", "Server\Server.csproj", "{31E93A00-A8CA-4F84-A21A-0737ADA49581}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{31E93A00-A8CA-4F84-A21A-0737ADA49581}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{31E93A00-A8CA-4F84-A21A-0737ADA49581}.Debug|Any CPU.Build.0 = Debug|Any CPU
{31E93A00-A8CA-4F84-A21A-0737ADA49581}.Release|Any CPU.ActiveCfg = Release|Any CPU
{31E93A00-A8CA-4F84-A21A-0737ADA49581}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4A362742-08F6-49A5-8A45-5F31A21A331A}
EndGlobalSection
EndGlobal

BIN
Server/.DS_Store vendored Normal file

Binary file not shown.

20
Server/NLog.config Normal file
View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target
name="logfile"
xsi:type="File"
fileName="Log/${date:format=yyyy-MM-dd}.txt"
archiveAboveSize="10485760"
archiveNumbering="Sequence"
archiveEvery="Day"
maxArchiveFiles="1000"
/>
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="logfile" />
</rules>
</nlog>

9
Server/Program.cs Normal file
View File

@ -0,0 +1,9 @@
using Server.System;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
ProtocolProcessor.init();
app.MapPost("/", ProtocolProcessor.Process);
app.Run();

View File

@ -0,0 +1,28 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:4855",
"sslPort": 44398
}
},
"profiles": {
"Server": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:4860",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

142
Server/SQL/SQL.cs Normal file
View File

@ -0,0 +1,142 @@
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using Server.System;
namespace Server.SQL
{
public class SQL<T>
{
string className;
Regex regex = new Regex(STATICS.PATTERN);
public SQL()
{
className = typeof(T).Name;
}
public string sqlInsert(T instance)
{
List<string> names = new List<string>();
List<string> values = new List<string>();
foreach (FieldInfo field in typeof(T).GetFields())
{
object value = field.GetValue(instance);
if (value == null)
continue;
names.Add(field.Name);
values.Add(value.ToString());
}
StringBuilder qurry = new StringBuilder();
qurry.Append($"INSERT INTO {className} (");
int n = 0;
int count = names.Count;
for(; n < count; n++)
{
qurry.Append(names[n]);
if(n != count - 1)
{
qurry.Append(", ");
}
}
qurry.Append(") VALUES (");
n = 0;
for (; n < count; n++)
{
qurry.Append(values[n]);
if (n != count - 1)
{
qurry.Append(", ");
}
}
qurry.Append(");");
return qurry.ToString();
}
public string sqlUpdate(string[] names, object[] values, string[] wnames, object[] wvalues)
{
StringBuilder qurry = new StringBuilder();
qurry.Append($"UPDATE {className} SET ");
for(int n = 0; n < names.Length; n++)
{
qurry.Append($"{names[n]} = {values[n]}");
if(n < names.Length - 1)
{
qurry.Append(", ");
}
}
qurry.Append(" WHERE ");
for (int n = 0; n < wnames.Length; n++)
{
qurry.Append($"{wnames[n]} = {wvalues[n]}");
if (n < wnames.Length - 1)
{
qurry.Append(", ");
}
}
return qurry.ToString();
}
public string sqlSelect(string[] names, string[] wnames, object[] wvalues)
{
StringBuilder qurry = new StringBuilder();
if(names == null)
{
qurry.Append($"SELECT * FROM {className} ");
}
else
{
qurry.Append("SELECT ");
for(int n = 0; n < names.Length; n++)
{
qurry.Append(names[n]);
if (n < names.Length - 1)
{
qurry.Append(", ");
}
}
qurry.Append($" FROM {className} ");
}
qurry.Append(" WHERE ");
for (int n = 0; n < wnames.Length; n++)
{
qurry.Append($"{wnames[n]} = {wvalues[n]}");
if (n < wnames.Length - 1)
{
qurry.Append(", ");
}
}
return qurry.ToString();
}
public string sqlDelete(string[] wnames, object[] wvalues)
{
StringBuilder qurry = new StringBuilder();
qurry.Append($"DELETE FROM {className}");
qurry.Append(" WHERE ");
for (int n = 0; n < wnames.Length; n++)
{
qurry.Append($"{wnames[n]} = {wvalues[n]}");
if (n < wnames.Length - 1)
{
qurry.Append(", ");
}
}
return qurry.ToString();
}
public string Injection(string data)
{
return regex.Replace(data, "");
}
}
}

18
Server/SQL/UserSQL.cs Normal file
View File

@ -0,0 +1,18 @@
namespace Server.SQL
{
public class User
{
public int Id { get; set; }
public string NickName { get; set; }
public string count { get; set; }
}
public class UserSQL : SQL<User>
{
public void userInsert(User user)
{
string qurry = sqlInsert(user);
}
}
}
//쿼리 전송

14
Server/Server.csproj Normal file
View File

@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NLog" Version="5.2.0" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,44 @@
using Server.System;
using Newtonsoft.Json;
namespace Server.Service
{
public class Test : AbstractService
{
private TestReq req;
public override string Process()
{
return makeResp();
}
public override Protocol ProtocolValue() => Protocol.Test;
public override Req Requst(string json)
{
req = JsonConvert.DeserializeObject<TestReq>(json);
return req;
}
private string makeResp()
{
TestResp resp = new TestResp();
resp.status = 200;
return resp.ToJson();
}
}
public class TestReq : Req
{
public override bool IsReceivedAllField()
{
return true;
}
}
public class TestResp : Resp
{
}
}

44
Server/Service/Test.cs Normal file
View File

@ -0,0 +1,44 @@
using Server.System;
using Newtonsoft.Json;
namespace Server.Service
{
public class awaketest : AbstractService
{
private awaketestReq req;
public override string Process()
{
return makeResp();
}
public override Protocol ProtocolValue() => Protocol.Test;
public override Req Requst(string json)
{
req = JsonConvert.DeserializeObject<awaketestReq>(json);
return req;
}
private string makeResp()
{
awaketestResp resp = new awaketestResp();
resp.status = 200;
return resp.ToJson();
}
}
public class awaketestReq : Req
{
public override bool IsReceivedAllField()
{
return true;
}
}
public class awaketestResp : Resp
{
}
}

32
Server/System/Abstract.cs Normal file
View File

@ -0,0 +1,32 @@
using Newtonsoft.Json;
namespace Server.System
{
public abstract class AbstractService
{
public abstract Protocol ProtocolValue();
public abstract string Process();
public abstract Req Requst(string json);
}
public abstract class Req
{
public Protocol cmd;
public virtual bool IsReceivedAllField()
{
return true;
}
}
public abstract class Resp
{
public int status;
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this);
}
}
}

15
Server/System/Enums.cs Normal file
View File

@ -0,0 +1,15 @@
public enum Protocol
{
Test = 0,
}
public enum Error
{
RuntimeException = -1,//서버 오류
None = 0,//사용안함
success = 200,//성공
notFound = 404,//프로토콜 없음
unknown = 500,//파라미터 오류
crypto = 800,//암복호화 에러
nodata = 900,//데이터가 없음
}

28
Server/System/Error.cs Normal file
View File

@ -0,0 +1,28 @@
namespace Server.System
{
public class ErrorResp : Resp
{
public string message;
public ErrorResp(RuntimeException ex)
{
this.status = (int)ex.status;
this.message = ex.Message;
}
public ErrorResp()
{
this.status = -1;
this.message = "Unknown Error";
}
}
public class RuntimeException : Exception
{
public Error status;
public RuntimeException(string message = "", Error status = Error.RuntimeException) : base(message)
{
this.status = status;
}
}
}

14
Server/System/Statics.cs Normal file
View File

@ -0,0 +1,14 @@
namespace Server.System
{
public static class STATICS
{
#region Dev
#if DEBUG
public static readonly string SQL_URL = "Server=myServerAddress;Port=myPort;Database=myDatabase;Uid=myUsername;Pwd=myPassword;";
#endif
#endregion
public static readonly string PATTERN = "[^a-zA-Z0-9가-힣 ]";
}
}

View File

@ -0,0 +1,77 @@
using System.Reflection;
using NLog;
namespace Server.System {
public class ProtocolProcessor {
private static Dictionary<Protocol, AbstractService> SERVICE_DIC = new Dictionary<Protocol, AbstractService>();
private static readonly NLog.ILogger logger = LogManager.GetCurrentClassLogger();
public static void addProtocol(AbstractService abstractService) {
if (SERVICE_DIC.ContainsKey(abstractService.ProtocolValue())) {
logger.Error("중복된 프로토콜 : " + abstractService.ProtocolValue());
throw new Exception("중복된 프로토콜 : " + abstractService.ProtocolValue());
}
SERVICE_DIC.Add(abstractService.ProtocolValue(), abstractService);
}
public static void init() {
// 현재 실행 중인 어셈블리를 가져옴
var assembly = Assembly.GetExecutingAssembly();
// 'AbstractService'의 하위 클래스를 모두 찾음
var serviceTypes = assembly.GetTypes().Where(t => t.IsSubclassOf(typeof(AbstractService)) && !t.IsAbstract);
// 각 클래스의 인스턴스를 생성합니다. 생성자에서 자동으로 등록됩니다.
foreach (var type in serviceTypes)
addProtocol((AbstractService)Activator.CreateInstance(type));
logger.Info("Server Start");
}
public static string Process(HttpContext context) {
AbstractService abstractService;
string Response = "";
try {
Protocol cmd = (Protocol)int.Parse(context.Request.Headers["cmd"]);
SERVICE_DIC.TryGetValue(cmd, out abstractService);
if (abstractService == null)
throw new RuntimeException("Not Found", Error.notFound);
string body = Request(context.Request).GetAwaiter().GetResult();
logger.Info("GetRequst : " + body);
Req req = abstractService.Requst(body);
if (req == null)
throw new RuntimeException("", Error.nodata);
else if (!req.IsReceivedAllField())
throw new RuntimeException("Internal Server Error", Error.unknown);
Response = abstractService.Process();
logger.Info("GetResponse : " + Response);
}
catch (RuntimeException ex) {
ErrorResp error = new ErrorResp(ex);
Response = error.ToJson();
logger.Error("GetErrorResponse : " + Response);
}
catch (Exception ex) {
ErrorResp error = new ErrorResp();
Response = error.ToJson();
logger.Error("GetErrorResponse : " + ex.ToString());
}
return Response;
}
private static async Task<string> Request(HttpRequest request) {
using var reader = new StreamReader(request.Body);
return await reader.ReadToEndAsync();
}
}
}

View File

@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

9
Server/appsettings.json Normal file
View File

@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "None",
"Microsoft.AspNetCore": "None"
}
},
"AllowedHosts": "localhost"
}

BIN
Server/bin/.DS_Store vendored Normal file

Binary file not shown.

BIN
Server/bin/Debug/.DS_Store vendored Normal file

Binary file not shown.

BIN
Server/bin/Debug/net6.0/.DS_Store vendored Normal file

Binary file not shown.

BIN
Server/bin/Debug/net6.0/Log/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,5 @@
2023-06-29 19:34:18.9452|ERROR|Server.System.ProtocolProcessor|중복된 프로토콜 : Test
2023-06-29 19:34:19.2131|ERROR|Server.System.ProtocolProcessor|중복된 프로토콜 : Test
2023-06-29 19:34:19.3947|ERROR|Server.System.ProtocolProcessor|중복된 프로토콜 : Test
2023-06-29 19:34:19.6331|ERROR|Server.System.ProtocolProcessor|중복된 프로토콜 : Test
2023-06-29 19:34:19.6815|ERROR|Server.System.ProtocolProcessor|중복된 프로토콜 : Test

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target
name="logfile"
xsi:type="File"
fileName="Log/${date:format=yyyy-MM-dd}.txt"
archiveAboveSize="10485760"
archiveNumbering="Sequence"
archiveEvery="Day"
maxArchiveFiles="1000"
/>
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="logfile" />
</rules>
</nlog>

BIN
Server/bin/Debug/net6.0/NLog.dll Executable file

Binary file not shown.

Binary file not shown.

BIN
Server/bin/Debug/net6.0/Server Executable file

Binary file not shown.

View File

@ -0,0 +1,57 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Server/1.0.0": {
"dependencies": {
"NLog": "5.2.0",
"Newtonsoft.Json": "13.0.3"
},
"runtime": {
"Server.dll": {}
}
},
"Newtonsoft.Json/13.0.3": {
"runtime": {
"lib/net6.0/Newtonsoft.Json.dll": {
"assemblyVersion": "13.0.0.0",
"fileVersion": "13.0.3.27908"
}
}
},
"NLog/5.2.0": {
"runtime": {
"lib/netstandard2.0/NLog.dll": {
"assemblyVersion": "5.0.0.0",
"fileVersion": "5.2.0.1813"
}
}
}
}
},
"libraries": {
"Server/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Newtonsoft.Json/13.0.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
"path": "newtonsoft.json/13.0.3",
"hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
},
"NLog/5.2.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-uYBgseY0m/9lQUbZYGsQsTBFOWrfs3iaekzzYMH6vFmpoOAvV8/bp1XxG/suZkwB5h8nAiTJAp7VENWRDKtKPA==",
"path": "nlog/5.2.0",
"hashPath": "nlog.5.2.0.nupkg.sha512"
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,19 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "6.0.0"
}
],
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

View File

@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "None",
"Microsoft.AspNetCore": "None"
}
},
"AllowedHosts": "localhost"
}

BIN
Server/obj/.DS_Store vendored Normal file

Binary file not shown.

BIN
Server/obj/Debug/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

View File

@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Server")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Server")]
[assembly: System.Reflection.AssemblyTitleAttribute("Server")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// MSBuild WriteCodeFragment 클래스에서 생성되었습니다.

View File

@ -0,0 +1 @@
24a19a338571d06fa5670dc4c5fa352c3d517153

View File

@ -0,0 +1,17 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Server
build_property.RootNamespace = Server
build_property.ProjectDir = /Users/pandoli365/Downloads/git/CsServer/Server/
build_property.RazorLangVersion = 6.0
build_property.SupportLocalizedComponentNames =
build_property.GenerateRazorMetadataSourceChecksumAttributes =
build_property.MSBuildProjectDirectory = /Users/pandoli365/Downloads/git/CsServer/Server
build_property._RazorSourceGeneratorDebug =

View File

@ -0,0 +1,17 @@
// <auto-generated/>
global using global::Microsoft.AspNetCore.Builder;
global using global::Microsoft.AspNetCore.Hosting;
global using global::Microsoft.AspNetCore.Http;
global using global::Microsoft.AspNetCore.Routing;
global using global::Microsoft.Extensions.Configuration;
global using global::Microsoft.Extensions.DependencyInjection;
global using global::Microsoft.Extensions.Hosting;
global using global::Microsoft.Extensions.Logging;
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Net.Http.Json;
global using global::System.Threading;
global using global::System.Threading.Tasks;

Binary file not shown.

View File

@ -0,0 +1 @@
902c29e115196f4455fc7ce177d6c6c5cd7ac55d

View File

@ -0,0 +1,58 @@
C:/Users/snowpipe/Desktop/bin/Server/Server/bin/Debug/net6.0/appsettings.Development.json
C:/Users/snowpipe/Desktop/bin/Server/Server/bin/Debug/net6.0/appsettings.json
C:/Users/snowpipe/Desktop/bin/Server/Server/bin/Debug/net6.0/Server.exe
C:/Users/snowpipe/Desktop/bin/Server/Server/bin/Debug/net6.0/Server.deps.json
C:/Users/snowpipe/Desktop/bin/Server/Server/bin/Debug/net6.0/Server.runtimeconfig.json
C:/Users/snowpipe/Desktop/bin/Server/Server/bin/Debug/net6.0/Server.dll
C:/Users/snowpipe/Desktop/bin/Server/Server/bin/Debug/net6.0/Server.pdb
C:/Users/snowpipe/Desktop/bin/Server/Server/bin/Debug/net6.0/Newtonsoft.Json.dll
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.csproj.AssemblyReference.cache
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.GeneratedMSBuildEditorConfig.editorconfig
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.AssemblyInfoInputs.cache
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.AssemblyInfo.cs
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.csproj.CoreCompileInputs.cache
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.MvcApplicationPartsAssemblyInfo.cache
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/staticwebassets/msbuild.Server.Microsoft.AspNetCore.StaticWebAssets.props
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/staticwebassets/msbuild.build.Server.props
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/staticwebassets/msbuild.buildMultiTargeting.Server.props
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/staticwebassets/msbuild.buildTransitive.Server.props
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/staticwebassets.pack.json
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/staticwebassets.build.json
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/staticwebassets.development.json
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/scopedcss/bundle/Server.styles.css
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.csproj.CopyComplete
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.dll
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/refint/Server.dll
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.pdb
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/Server.genruntimeconfig.cache
C:/Users/snowpipe/Desktop/bin/Server/Server/obj/Debug/net6.0/ref/Server.dll
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/appsettings.Development.json
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/appsettings.json
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/Server
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/Server.deps.json
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/Server.runtimeconfig.json
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/Server.dll
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/Server.pdb
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/Newtonsoft.Json.dll
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.csproj.AssemblyReference.cache
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.GeneratedMSBuildEditorConfig.editorconfig
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.AssemblyInfoInputs.cache
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.AssemblyInfo.cs
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.csproj.CoreCompileInputs.cache
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.MvcApplicationPartsAssemblyInfo.cache
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/staticwebassets/msbuild.Server.Microsoft.AspNetCore.StaticWebAssets.props
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/staticwebassets/msbuild.build.Server.props
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/staticwebassets/msbuild.buildMultiTargeting.Server.props
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/staticwebassets/msbuild.buildTransitive.Server.props
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/staticwebassets.pack.json
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/staticwebassets.build.json
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/staticwebassets.development.json
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/scopedcss/bundle/Server.styles.css
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.csproj.CopyComplete
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.dll
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/refint/Server.dll
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.pdb
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/Server.genruntimeconfig.cache
/Users/pandoli365/Desktop/net/CsServer/Server/obj/Debug/net6.0/ref/Server.dll
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/NLog.config
/Users/pandoli365/Desktop/net/CsServer/Server/bin/Debug/net6.0/NLog.dll

Binary file not shown.

View File

@ -0,0 +1 @@
512842858038edc53958b4d994b7c692caf32e92

Binary file not shown.

BIN
Server/obj/Debug/net6.0/apphost Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,11 @@
{
"Version": 1,
"Hash": "z8/jf/uVtfFHkS7UZKSCL97FvnwEOhJPQdCo8dr/ZzU=",
"Source": "Server",
"BasePath": "_content/Server",
"Mode": "Default",
"ManifestType": "Build",
"ReferencedProjectsConfiguration": [],
"DiscoveryPatterns": [],
"Assets": []
}

View File

@ -0,0 +1,3 @@
<Project>
<Import Project="Microsoft.AspNetCore.StaticWebAssets.props" />
</Project>

View File

@ -0,0 +1,3 @@
<Project>
<Import Project="../build/Server.props" />
</Project>

View File

@ -0,0 +1,3 @@
<Project>
<Import Project="../buildMultiTargeting/Server.props" />
</Project>

View File

@ -0,0 +1,90 @@
{
"format": 1,
"restore": {
"/Users/pandoli365/Downloads/git/CsServer/Server/Server.csproj": {}
},
"projects": {
"/Users/pandoli365/Downloads/git/CsServer/Server/Server.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/Users/pandoli365/Downloads/git/CsServer/Server/Server.csproj",
"projectName": "Server",
"projectPath": "/Users/pandoli365/Downloads/git/CsServer/Server/Server.csproj",
"packagesPath": "/Users/pandoli365/.nuget/packages/",
"outputPath": "/Users/pandoli365/Downloads/git/CsServer/Server/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/Users/pandoli365/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"/usr/local/share/dotnet/library-packs": {},
"/usr/local/share/dotnet/sdk/7.0.304/Sdks/Microsoft.NET.Sdk.Web/library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"NLog": {
"target": "Package",
"version": "[5.2.0, )"
},
"Newtonsoft.Json": {
"target": "Package",
"version": "[13.0.3, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[6.0.18, 6.0.18]"
},
{
"name": "Microsoft.NETCore.App.Host.osx-arm64",
"version": "[6.0.18, 6.0.18]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[6.0.18, 6.0.18]"
}
],
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.304/RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/pandoli365/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/pandoli365/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/Users/pandoli365/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@ -0,0 +1,180 @@
{
"version": 3,
"targets": {
"net6.0": {
"Newtonsoft.Json/13.0.3": {
"type": "package",
"compile": {
"lib/net6.0/Newtonsoft.Json.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net6.0/Newtonsoft.Json.dll": {
"related": ".xml"
}
}
},
"NLog/5.2.0": {
"type": "package",
"compile": {
"lib/netstandard2.0/NLog.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netstandard2.0/NLog.dll": {
"related": ".xml"
}
}
}
}
},
"libraries": {
"Newtonsoft.Json/13.0.3": {
"sha512": "HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
"type": "package",
"path": "newtonsoft.json/13.0.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.md",
"README.md",
"lib/net20/Newtonsoft.Json.dll",
"lib/net20/Newtonsoft.Json.xml",
"lib/net35/Newtonsoft.Json.dll",
"lib/net35/Newtonsoft.Json.xml",
"lib/net40/Newtonsoft.Json.dll",
"lib/net40/Newtonsoft.Json.xml",
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
"lib/net6.0/Newtonsoft.Json.dll",
"lib/net6.0/Newtonsoft.Json.xml",
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
"newtonsoft.json.13.0.3.nupkg.sha512",
"newtonsoft.json.nuspec",
"packageIcon.png"
]
},
"NLog/5.2.0": {
"sha512": "uYBgseY0m/9lQUbZYGsQsTBFOWrfs3iaekzzYMH6vFmpoOAvV8/bp1XxG/suZkwB5h8nAiTJAp7VENWRDKtKPA==",
"type": "package",
"path": "nlog/5.2.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"N.png",
"lib/net35/NLog.dll",
"lib/net35/NLog.xml",
"lib/net45/NLog.dll",
"lib/net45/NLog.xml",
"lib/net46/NLog.dll",
"lib/net46/NLog.xml",
"lib/netstandard1.3/NLog.dll",
"lib/netstandard1.3/NLog.xml",
"lib/netstandard1.5/NLog.dll",
"lib/netstandard1.5/NLog.xml",
"lib/netstandard2.0/NLog.dll",
"lib/netstandard2.0/NLog.xml",
"nlog.5.2.0.nupkg.sha512",
"nlog.nuspec"
]
}
},
"projectFileDependencyGroups": {
"net6.0": [
"NLog >= 5.2.0",
"Newtonsoft.Json >= 13.0.3"
]
},
"packageFolders": {
"/Users/pandoli365/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/Users/pandoli365/Downloads/git/CsServer/Server/Server.csproj",
"projectName": "Server",
"projectPath": "/Users/pandoli365/Downloads/git/CsServer/Server/Server.csproj",
"packagesPath": "/Users/pandoli365/.nuget/packages/",
"outputPath": "/Users/pandoli365/Downloads/git/CsServer/Server/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/Users/pandoli365/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"/usr/local/share/dotnet/library-packs": {},
"/usr/local/share/dotnet/sdk/7.0.304/Sdks/Microsoft.NET.Sdk.Web/library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"NLog": {
"target": "Package",
"version": "[5.2.0, )"
},
"Newtonsoft.Json": {
"target": "Package",
"version": "[13.0.3, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[6.0.18, 6.0.18]"
},
{
"name": "Microsoft.NETCore.App.Host.osx-arm64",
"version": "[6.0.18, 6.0.18]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[6.0.18, 6.0.18]"
}
],
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.304/RuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -0,0 +1,14 @@
{
"version": 2,
"dgSpecHash": "Bo45TvrbObT6jnykYWrck7w5dYoRkOySi6afcuoQ1NALgPC8FUlqKJmx8YN/44i2AyYnY6odlafpvtB5+yoDvQ==",
"success": true,
"projectFilePath": "/Users/pandoli365/Downloads/git/CsServer/Server/Server.csproj",
"expectedPackageFiles": [
"/Users/pandoli365/.nuget/packages/newtonsoft.json/13.0.3/newtonsoft.json.13.0.3.nupkg.sha512",
"/Users/pandoli365/.nuget/packages/nlog/5.2.0/nlog.5.2.0.nupkg.sha512",
"/Users/pandoli365/.nuget/packages/microsoft.aspnetcore.app.ref/6.0.18/microsoft.aspnetcore.app.ref.6.0.18.nupkg.sha512",
"/Users/pandoli365/.nuget/packages/microsoft.netcore.app.host.osx-arm64/6.0.18/microsoft.netcore.app.host.osx-arm64.6.0.18.nupkg.sha512",
"/Users/pandoli365/.nuget/packages/microsoft.netcore.app.ref/6.0.18/microsoft.netcore.app.ref.6.0.18.nupkg.sha512"
],
"logs": []
}