From 02909d92c1a4c6ed9fb010048198a5548d572fe2 Mon Sep 17 00:00:00 2001 From: lingdar77 Date: Fri, 3 Oct 2025 01:38:26 +0800 Subject: [PATCH] init --- .gitignore | 9 +++++++++ .vscode/launch.json | 26 ++++++++++++++++++++++++++ .vscode/tasks.json | 41 +++++++++++++++++++++++++++++++++++++++++ Directory.Build.props | 19 +++++++++++++++++++ Source/Program.cs | 2 ++ Source/Source.csproj | 5 +++++ codegen.sln | 34 ++++++++++++++++++++++++++++++++++ 7 files changed, 136 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json create mode 100644 Directory.Build.props create mode 100644 Source/Program.cs create mode 100644 Source/Source.csproj create mode 100644 codegen.sln diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..051a14e --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +Build +obj +bin +!Scripts/bin +.vs +.godot +~$*.* +android +node_modules \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4f8331b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.2.0", + "configurations": [ + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/Build/Source.dll", + "args": [], + "cwd": "${workspaceFolder}/Source", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..83187ea --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/codegen.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/codegen.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/codegen.sln" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..4b2e817 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,19 @@ + + + net8.0 + enable + True + lingdar77 + deadend.work + enable + True + + + ..\Build + false + false + + + ..\Build\.intermediate\Source + + \ No newline at end of file diff --git a/Source/Program.cs b/Source/Program.cs new file mode 100644 index 0000000..3751555 --- /dev/null +++ b/Source/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/Source/Source.csproj b/Source/Source.csproj new file mode 100644 index 0000000..c0d67fc --- /dev/null +++ b/Source/Source.csproj @@ -0,0 +1,5 @@ + + + Exe + + diff --git a/codegen.sln b/codegen.sln new file mode 100644 index 0000000..f60aa21 --- /dev/null +++ b/codegen.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Source", "Source\Source.csproj", "{F1B0542C-51A8-4953-A350-10B350394FE2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F1B0542C-51A8-4953-A350-10B350394FE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Debug|x64.ActiveCfg = Debug|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Debug|x64.Build.0 = Debug|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Debug|x86.ActiveCfg = Debug|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Debug|x86.Build.0 = Debug|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Release|Any CPU.Build.0 = Release|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Release|x64.ActiveCfg = Release|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Release|x64.Build.0 = Release|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Release|x86.ActiveCfg = Release|Any CPU + {F1B0542C-51A8-4953-A350-10B350394FE2}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal