上传部署环境
This commit is contained in:
parent
00ee9c35ab
commit
d3905eca60
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# ---> Go
|
||||||
|
# Binaries for programs and plugins
|
||||||
|
*.exe
|
||||||
|
*.exe~
|
||||||
|
|
||||||
|
# Test binary, built with `go test -c`
|
||||||
|
*.test
|
||||||
|
|
||||||
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||||
|
*.out
|
||||||
|
|
||||||
|
*.log
|
||||||
|
/output
|
@ -10,10 +10,13 @@ namespace BattleServer
|
|||||||
{
|
{
|
||||||
HotUpdateScripts.FightRunnerMgr.Instance.Init("./GameConfig/");
|
HotUpdateScripts.FightRunnerMgr.Instance.Init("./GameConfig/");
|
||||||
cfg.Game.HeroData data = HotUpdateScripts.FightBase.GC.Hero.Get("25001");
|
cfg.Game.HeroData data = HotUpdateScripts.FightBase.GC.Hero.Get("25001");
|
||||||
HotUpdateScripts.FightDebug.Log("测试读取配置 name:"+data.Name);
|
Console.WriteLine("测试读取配置 name:"+data.Name);
|
||||||
Console.WriteLine("BattleServer Start!");
|
Console.WriteLine("BattleServer Start!");
|
||||||
Service service = new Service();
|
Service service = new Service();
|
||||||
Console.ReadKey();
|
while(true){
|
||||||
|
|
||||||
|
}
|
||||||
|
Console.WriteLine("BattleServer End!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,131 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeTarget": {
|
|
||||||
"name": ".NETCoreApp,Version=v6.0",
|
|
||||||
"signature": ""
|
|
||||||
},
|
|
||||||
"compilationOptions": {},
|
|
||||||
"targets": {
|
|
||||||
".NETCoreApp,Version=v6.0": {
|
|
||||||
"dfbattle/1.0.0": {
|
|
||||||
"dependencies": {
|
|
||||||
"Fleck": "1.2.0",
|
|
||||||
"Microsoft.Extensions.DependencyInjection": "2.1.1",
|
|
||||||
"battle": "1.0.0.0",
|
|
||||||
"FightRunner": "1.0.0.0",
|
|
||||||
"GameFight": "1.0.0.0",
|
|
||||||
"GameProto": "1.0.0.0"
|
|
||||||
},
|
|
||||||
"runtime": {
|
|
||||||
"dfbattle.dll": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Fleck/1.2.0": {
|
|
||||||
"runtime": {
|
|
||||||
"lib/netcoreapp2.0/Fleck.dll": {
|
|
||||||
"assemblyVersion": "1.2.0.0",
|
|
||||||
"fileVersion": "1.2.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Microsoft.Extensions.DependencyInjection/2.1.1": {
|
|
||||||
"dependencies": {
|
|
||||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.1.1"
|
|
||||||
},
|
|
||||||
"runtime": {
|
|
||||||
"lib/netcoreapp2.0/Microsoft.Extensions.DependencyInjection.dll": {
|
|
||||||
"assemblyVersion": "2.1.1.0",
|
|
||||||
"fileVersion": "2.1.1.18157"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Microsoft.Extensions.DependencyInjection.Abstractions/2.1.1": {
|
|
||||||
"runtime": {
|
|
||||||
"lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
|
|
||||||
"assemblyVersion": "2.1.1.0",
|
|
||||||
"fileVersion": "2.1.1.18157"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"battle/1.0.0.0": {
|
|
||||||
"runtime": {
|
|
||||||
"battle.dll": {
|
|
||||||
"assemblyVersion": "1.0.0.0",
|
|
||||||
"fileVersion": "1.0.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"FightRunner/1.0.0.0": {
|
|
||||||
"runtime": {
|
|
||||||
"FightRunner.dll": {
|
|
||||||
"assemblyVersion": "1.0.0.0",
|
|
||||||
"fileVersion": "1.0.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"GameFight/1.0.0.0": {
|
|
||||||
"runtime": {
|
|
||||||
"GameFight.dll": {
|
|
||||||
"assemblyVersion": "1.0.0.0",
|
|
||||||
"fileVersion": "1.0.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"GameProto/1.0.0.0": {
|
|
||||||
"runtime": {
|
|
||||||
"GameProto.dll": {
|
|
||||||
"assemblyVersion": "1.0.0.0",
|
|
||||||
"fileVersion": "1.0.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libraries": {
|
|
||||||
"dfbattle/1.0.0": {
|
|
||||||
"type": "project",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
},
|
|
||||||
"Fleck/1.2.0": {
|
|
||||||
"type": "package",
|
|
||||||
"serviceable": true,
|
|
||||||
"sha512": "sha512-bPLXn6QbLAFoviur6XbrKB0Zn6x04E8VibHXyHZeJsoC7bkUl5DVtzM5cZgDuqHkIrBqAXJyTNJwSNIc6wBJ2Q==",
|
|
||||||
"path": "fleck/1.2.0",
|
|
||||||
"hashPath": "fleck.1.2.0.nupkg.sha512"
|
|
||||||
},
|
|
||||||
"Microsoft.Extensions.DependencyInjection/2.1.1": {
|
|
||||||
"type": "package",
|
|
||||||
"serviceable": true,
|
|
||||||
"sha512": "sha512-RVdgNWT/73M0eCpreGpWv5NmbHFGQzzW+G7nChK8ej84m+d1nzeWrtqcRYnEpKNx3B8V/Uek4tNP0WCaCNjYnQ==",
|
|
||||||
"path": "microsoft.extensions.dependencyinjection/2.1.1",
|
|
||||||
"hashPath": "microsoft.extensions.dependencyinjection.2.1.1.nupkg.sha512"
|
|
||||||
},
|
|
||||||
"Microsoft.Extensions.DependencyInjection.Abstractions/2.1.1": {
|
|
||||||
"type": "package",
|
|
||||||
"serviceable": true,
|
|
||||||
"sha512": "sha512-MgYpU5cwZohUMKKg3sbPhvGG+eAZ/59E9UwPwlrUkyXU+PGzqwZg9yyQNjhxuAWmoNoFReoemeCku50prYSGzA==",
|
|
||||||
"path": "microsoft.extensions.dependencyinjection.abstractions/2.1.1",
|
|
||||||
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.2.1.1.nupkg.sha512"
|
|
||||||
},
|
|
||||||
"battle/1.0.0.0": {
|
|
||||||
"type": "reference",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
},
|
|
||||||
"FightRunner/1.0.0.0": {
|
|
||||||
"type": "reference",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
},
|
|
||||||
"GameFight/1.0.0.0": {
|
|
||||||
"type": "reference",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
},
|
|
||||||
"GameProto/1.0.0.0": {
|
|
||||||
"type": "reference",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeOptions": {
|
|
||||||
"tfm": "net6.0",
|
|
||||||
"framework": {
|
|
||||||
"name": "Microsoft.NETCore.App",
|
|
||||||
"version": "6.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -9,9 +9,11 @@
|
|||||||
"dfbattle/1.0.0": {
|
"dfbattle/1.0.0": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Fleck": "1.2.0",
|
"Fleck": "1.2.0",
|
||||||
"Google.Protobuf": "3.21.9",
|
|
||||||
"Microsoft.Extensions.DependencyInjection": "2.1.1",
|
"Microsoft.Extensions.DependencyInjection": "2.1.1",
|
||||||
"battle": "1.0.0.0"
|
"battle": "1.0.0.0",
|
||||||
|
"FightRunner": "1.0.0.0",
|
||||||
|
"GameFight": "1.0.0.0",
|
||||||
|
"GameProto": "1.0.0.0"
|
||||||
},
|
},
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"dfbattle.dll": {}
|
"dfbattle.dll": {}
|
||||||
@ -25,14 +27,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Google.Protobuf/3.21.9": {
|
|
||||||
"runtime": {
|
|
||||||
"lib/net5.0/Google.Protobuf.dll": {
|
|
||||||
"assemblyVersion": "3.21.9.0",
|
|
||||||
"fileVersion": "3.21.9.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Microsoft.Extensions.DependencyInjection/2.1.1": {
|
"Microsoft.Extensions.DependencyInjection/2.1.1": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.1.1"
|
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.1.1"
|
||||||
@ -59,6 +53,30 @@
|
|||||||
"fileVersion": "1.0.0.0"
|
"fileVersion": "1.0.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"FightRunner/1.0.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"FightRunner.dll": {
|
||||||
|
"assemblyVersion": "1.0.0.0",
|
||||||
|
"fileVersion": "1.0.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"GameFight/1.0.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"GameFight.dll": {
|
||||||
|
"assemblyVersion": "1.0.0.0",
|
||||||
|
"fileVersion": "1.0.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"GameProto/1.0.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"GameProto.dll": {
|
||||||
|
"assemblyVersion": "1.0.0.0",
|
||||||
|
"fileVersion": "1.0.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -75,13 +93,6 @@
|
|||||||
"path": "fleck/1.2.0",
|
"path": "fleck/1.2.0",
|
||||||
"hashPath": "fleck.1.2.0.nupkg.sha512"
|
"hashPath": "fleck.1.2.0.nupkg.sha512"
|
||||||
},
|
},
|
||||||
"Google.Protobuf/3.21.9": {
|
|
||||||
"type": "package",
|
|
||||||
"serviceable": true,
|
|
||||||
"sha512": "sha512-OTpFujTgkmqMLbg3KT7F/iuKi1rg6s5FCS2M9XcVLDn40zL8wgXm37CY/F6MeOEXKjdcnXGCN/h7oyMkVydVsg==",
|
|
||||||
"path": "google.protobuf/3.21.9",
|
|
||||||
"hashPath": "google.protobuf.3.21.9.nupkg.sha512"
|
|
||||||
},
|
|
||||||
"Microsoft.Extensions.DependencyInjection/2.1.1": {
|
"Microsoft.Extensions.DependencyInjection/2.1.1": {
|
||||||
"type": "package",
|
"type": "package",
|
||||||
"serviceable": true,
|
"serviceable": true,
|
||||||
@ -100,6 +111,21 @@
|
|||||||
"type": "reference",
|
"type": "reference",
|
||||||
"serviceable": false,
|
"serviceable": false,
|
||||||
"sha512": ""
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"FightRunner/1.0.0.0": {
|
||||||
|
"type": "reference",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"GameFight/1.0.0.0": {
|
||||||
|
"type": "reference",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"GameProto/1.0.0.0": {
|
||||||
|
"type": "reference",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,22 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <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("dfbattle")]
|
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("dfbattle")]
|
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("dfbattle")]
|
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
|
||||||
|
|
||||||
// 由 MSBuild WriteCodeFragment 类生成。
|
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
1c0b81c852e44cc253216ba4ce98894e13df5491
|
|
@ -1,10 +0,0 @@
|
|||||||
is_global = true
|
|
||||||
build_property.TargetFramework = net6.0
|
|
||||||
build_property.TargetPlatformMinVersion =
|
|
||||||
build_property.UsingMicrosoftNETSdkWeb =
|
|
||||||
build_property.ProjectTypeGuids =
|
|
||||||
build_property.InvariantGlobalization =
|
|
||||||
build_property.PlatformNeutralAssembly =
|
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
|
||||||
build_property.RootNamespace = dfbattle
|
|
||||||
build_property.ProjectDir = F:\work\c#\dfbattle\
|
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
2b1963df72e0393b2f54a2f373236d9512a77a15
|
|
@ -1,23 +1,23 @@
|
|||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\dfbattle.exe
|
F:/work/c#/dfbattle/bin/Debug/net6.0/dfbattle.exe
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\dfbattle.deps.json
|
F:/work/c#/dfbattle/bin/Debug/net6.0/dfbattle.deps.json
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\dfbattle.runtimeconfig.json
|
F:/work/c#/dfbattle/bin/Debug/net6.0/dfbattle.runtimeconfig.json
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\dfbattle.dll
|
F:/work/c#/dfbattle/bin/Debug/net6.0/dfbattle.dll
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\dfbattle.pdb
|
F:/work/c#/dfbattle/bin/Debug/net6.0/dfbattle.pdb
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\Fleck.dll
|
F:/work/c#/dfbattle/bin/Debug/net6.0/Fleck.dll
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\Microsoft.Extensions.DependencyInjection.dll
|
F:/work/c#/dfbattle/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.dll
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll
|
F:/work/c#/dfbattle/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\battle.dll
|
F:/work/c#/dfbattle/bin/Debug/net6.0/battle.dll
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\FightRunner.dll
|
F:/work/c#/dfbattle/bin/Debug/net6.0/FightRunner.dll
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\GameFight.dll
|
F:/work/c#/dfbattle/bin/Debug/net6.0/GameFight.dll
|
||||||
F:\work\c#\dfbattle\bin\Debug\net6.0\GameProto.dll
|
F:/work/c#/dfbattle/bin/Debug/net6.0/GameProto.dll
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\dfbattle.csproj.AssemblyReference.cache
|
F:/work/c#/dfbattle/obj/Debug/net6.0/dfbattle.csproj.AssemblyReference.cache
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\dfbattle.GeneratedMSBuildEditorConfig.editorconfig
|
F:/work/c#/dfbattle/obj/Debug/net6.0/dfbattle.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\dfbattle.AssemblyInfoInputs.cache
|
F:/work/c#/dfbattle/obj/Debug/net6.0/dfbattle.AssemblyInfoInputs.cache
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\dfbattle.AssemblyInfo.cs
|
F:/work/c#/dfbattle/obj/Debug/net6.0/dfbattle.AssemblyInfo.cs
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\dfbattle.csproj.CoreCompileInputs.cache
|
F:/work/c#/dfbattle/obj/Debug/net6.0/dfbattle.csproj.CoreCompileInputs.cache
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\dfbattle.csproj.CopyComplete
|
F:/work/c#/dfbattle/obj/Debug/net6.0/dfbattle.csproj.CopyComplete
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\dfbattle.dll
|
F:/work/c#/dfbattle/obj/Debug/net6.0/dfbattle.dll
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\refint\dfbattle.dll
|
F:/work/c#/dfbattle/obj/Debug/net6.0/refint/dfbattle.dll
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\dfbattle.pdb
|
F:/work/c#/dfbattle/obj/Debug/net6.0/dfbattle.pdb
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\dfbattle.genruntimeconfig.cache
|
F:/work/c#/dfbattle/obj/Debug/net6.0/dfbattle.genruntimeconfig.cache
|
||||||
F:\work\c#\dfbattle\obj\Debug\net6.0\ref\dfbattle.dll
|
F:/work/c#/dfbattle/obj/Debug/net6.0/ref/dfbattle.dll
|
||||||
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
e467f67f7c05efce451b802592739e7f55c06ec5
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,20 +1,20 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"F:\\work\\c#\\dfbattle\\dfbattle.csproj": {}
|
"/home/liwei/dfbattle/dfbattle.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"F:\\work\\c#\\dfbattle\\dfbattle.csproj": {
|
"/home/liwei/dfbattle/dfbattle.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "F:\\work\\c#\\dfbattle\\dfbattle.csproj",
|
"projectUniqueName": "/home/liwei/dfbattle/dfbattle.csproj",
|
||||||
"projectName": "dfbattle",
|
"projectName": "dfbattle",
|
||||||
"projectPath": "F:\\work\\c#\\dfbattle\\dfbattle.csproj",
|
"projectPath": "/home/liwei/dfbattle/dfbattle.csproj",
|
||||||
"packagesPath": "C:\\Users\\Administrator\\.nuget\\packages\\",
|
"packagesPath": "/root/.nuget/packages/",
|
||||||
"outputPath": "F:\\work\\c#\\dfbattle\\obj\\",
|
"outputPath": "/home/liwei/dfbattle/obj/",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\Administrator\\AppData\\Roaming\\NuGet\\NuGet.Config"
|
"/root/.nuget/NuGet/NuGet.Config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
"net6.0"
|
"net6.0"
|
||||||
@ -58,30 +58,12 @@
|
|||||||
],
|
],
|
||||||
"assetTargetFallback": true,
|
"assetTargetFallback": true,
|
||||||
"warn": true,
|
"warn": true,
|
||||||
"downloadDependencies": [
|
|
||||||
{
|
|
||||||
"name": "Microsoft.AspNetCore.App.Ref",
|
|
||||||
"version": "[6.0.7, 6.0.7]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Microsoft.NETCore.App.Host.win-x64",
|
|
||||||
"version": "[6.0.7, 6.0.7]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Microsoft.NETCore.App.Ref",
|
|
||||||
"version": "[6.0.7, 6.0.7]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Microsoft.WindowsDesktop.App.Ref",
|
|
||||||
"version": "[6.0.7, 6.0.7]"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"frameworkReferences": {
|
"frameworkReferences": {
|
||||||
"Microsoft.NETCore.App": {
|
"Microsoft.NETCore.App": {
|
||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100-preview.7.22377.5\\RuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.403/RuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,12 +4,12 @@
|
|||||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/root/.nuget/packages/</NuGetPackageRoot>
|
||||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Administrator\.nuget\packages\</NuGetPackageFolders>
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/root/.nuget/packages/</NuGetPackageFolders>
|
||||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.3.0</NuGetToolVersion>
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.3.1</NuGetToolVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<SourceRoot Include="C:\Users\Administrator\.nuget\packages\" />
|
<SourceRoot Include="/root/.nuget/packages/" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
@ -96,19 +96,19 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"packageFolders": {
|
"packageFolders": {
|
||||||
"C:\\Users\\Administrator\\.nuget\\packages\\": {}
|
"/root/.nuget/packages/": {}
|
||||||
},
|
},
|
||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "F:\\work\\c#\\dfbattle\\dfbattle.csproj",
|
"projectUniqueName": "/home/liwei/dfbattle/dfbattle.csproj",
|
||||||
"projectName": "dfbattle",
|
"projectName": "dfbattle",
|
||||||
"projectPath": "F:\\work\\c#\\dfbattle\\dfbattle.csproj",
|
"projectPath": "/home/liwei/dfbattle/dfbattle.csproj",
|
||||||
"packagesPath": "C:\\Users\\Administrator\\.nuget\\packages\\",
|
"packagesPath": "/root/.nuget/packages/",
|
||||||
"outputPath": "F:\\work\\c#\\dfbattle\\obj\\",
|
"outputPath": "/home/liwei/dfbattle/obj/",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\Administrator\\AppData\\Roaming\\NuGet\\NuGet.Config"
|
"/root/.nuget/NuGet/NuGet.Config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
"net6.0"
|
"net6.0"
|
||||||
@ -152,30 +152,12 @@
|
|||||||
],
|
],
|
||||||
"assetTargetFallback": true,
|
"assetTargetFallback": true,
|
||||||
"warn": true,
|
"warn": true,
|
||||||
"downloadDependencies": [
|
|
||||||
{
|
|
||||||
"name": "Microsoft.AspNetCore.App.Ref",
|
|
||||||
"version": "[6.0.7, 6.0.7]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Microsoft.NETCore.App.Host.win-x64",
|
|
||||||
"version": "[6.0.7, 6.0.7]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Microsoft.NETCore.App.Ref",
|
|
||||||
"version": "[6.0.7, 6.0.7]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Microsoft.WindowsDesktop.App.Ref",
|
|
||||||
"version": "[6.0.7, 6.0.7]"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"frameworkReferences": {
|
"frameworkReferences": {
|
||||||
"Microsoft.NETCore.App": {
|
"Microsoft.NETCore.App": {
|
||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100-preview.7.22377.5\\RuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.403/RuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "BBp5wqZ2XAQY794M4tYkeLMy/p0T1Mmgp2CSpUhLV3NZACcr6Wh9QxvKSK1zJ6lQ74nVyW6X3SfX2hATVqkvfQ==",
|
"dgSpecHash": "U7iSCXM95oW+n/qf9XI0Hrk5P/my9bkBH1g1hrCNoo+nc9qgCACaMeVRMcFAsJF7LJfWECsisUMcT4TuExRmUQ==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "F:\\work\\c#\\dfbattle\\dfbattle.csproj",
|
"projectFilePath": "/home/liwei/dfbattle/dfbattle.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
"C:\\Users\\Administrator\\.nuget\\packages\\fleck\\1.2.0\\fleck.1.2.0.nupkg.sha512",
|
"/root/.nuget/packages/fleck/1.2.0/fleck.1.2.0.nupkg.sha512",
|
||||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\2.1.1\\microsoft.extensions.dependencyinjection.2.1.1.nupkg.sha512",
|
"/root/.nuget/packages/microsoft.extensions.dependencyinjection/2.1.1/microsoft.extensions.dependencyinjection.2.1.1.nupkg.sha512",
|
||||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\2.1.1\\microsoft.extensions.dependencyinjection.abstractions.2.1.1.nupkg.sha512",
|
"/root/.nuget/packages/microsoft.extensions.dependencyinjection.abstractions/2.1.1/microsoft.extensions.dependencyinjection.abstractions.2.1.1.nupkg.sha512"
|
||||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.netcore.app.ref\\6.0.7\\microsoft.netcore.app.ref.6.0.7.nupkg.sha512",
|
|
||||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.windowsdesktop.app.ref\\6.0.7\\microsoft.windowsdesktop.app.ref.6.0.7.nupkg.sha512",
|
|
||||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.aspnetcore.app.ref\\6.0.7\\microsoft.aspnetcore.app.ref.6.0.7.nupkg.sha512",
|
|
||||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.netcore.app.host.win-x64\\6.0.7\\microsoft.netcore.app.host.win-x64.6.0.7.nupkg.sha512"
|
|
||||||
],
|
],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
60
stup.sh
Executable file
60
stup.sh
Executable file
@ -0,0 +1,60 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
SERVICE=$2
|
||||||
|
CMD="dotnet $2"
|
||||||
|
|
||||||
|
start(){
|
||||||
|
echo "starting $SERVICE..."
|
||||||
|
num=`ps -ef | grep dotnet | grep $SERVICE | grep -v grep | grep -v /bin/bash | wc -l`
|
||||||
|
if [ $num -eq 0 ]
|
||||||
|
then
|
||||||
|
# nohup $CMD > /dev/null 2>&1 &
|
||||||
|
nohup $CMD > $SERVICE.log 2>&1 &
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "start failed, please check the log!"
|
||||||
|
exit $?
|
||||||
|
else
|
||||||
|
|
||||||
|
# echo $! > $SERVICE.pid
|
||||||
|
echo "start success"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "$SERVICE is already running"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
stop(){
|
||||||
|
echo "stopping $SERVICE..."
|
||||||
|
#kill -9 `cat $SERVICE.pid`
|
||||||
|
kill -9 `ps -ef | grep dotnet | grep $SERVICE | awk '{print $2}'`
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "stop failed, may be $SERVICE isn't running"
|
||||||
|
exit $?
|
||||||
|
else
|
||||||
|
#rm -rf $SERVICE.pid
|
||||||
|
echo "stop success"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
restart(){
|
||||||
|
stop&&start
|
||||||
|
}
|
||||||
|
status(){
|
||||||
|
num=`ps -ef | grep dotnet | grep $SERVICE | grep -v grep | wc -l`
|
||||||
|
if [ $num -eq 0 ]
|
||||||
|
then
|
||||||
|
echo "$SERVICE isn't running"
|
||||||
|
else
|
||||||
|
echo "$SERVICE is running"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
case $1 in
|
||||||
|
start) start ;;
|
||||||
|
stop) stop ;;
|
||||||
|
restart) restart ;;
|
||||||
|
status) status ;;
|
||||||
|
*) echo "Usage: $0 {start|stop|restart|status}" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user