commit 2ff7b92fdb6a17fd9d8b193214f4fd9cf1c73c7e Author: 孙建超 Date: Tue Mar 17 16:10:27 2026 +0800 初始化忽略模板 diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c47a154f --- /dev/null +++ b/.gitignore @@ -0,0 +1,57 @@ +################################################################################ +# Windows C#/C++ 项目优化版 (保留 Bin 目录,排除中间件) +################################################################################ + +# --- 1. 核心构建中间目录 (完全忽略) --- +**/[Oo]bj/ +**/[Oo]bj-*/ + +# --- 2. Visual Studio 用户特定文件 --- +.vs/ +.vscode/ +*.suo +*.user +*.userosscache +*.sln.docstates +*.DotSettings.user + +# --- 3. 精准忽略:Bin 目录下的“建筑废料” --- +# 这些是编译/链接时的临时产物,不应提交 +*.obj +*.pch +*.ilk +*.exp +*.iobj +*.ipdb +*.ipch +*.idb +*.res +*.tlb +*.tlog +*.lastbuildstate +*.FileListAbsolute.txt +*.CopyComplete +*.log +*.cache + +# --- 4. 调试符号说明 --- +# 如果你们需要保留调试符号(用于崩溃分析),请注释掉下面这一行 +# 如果不需要 PDB,则保留这一行 +*.pdb + +# --- 5. 库与包管理 --- +**/packages/ +!**/packages/repositories.config +*.nupkg +*.snupkg + +# --- 6. AI 插件与工具配置 --- +.comate +.lingma +*.DotSettings + +# --- 7. 操作系统文件与其它 --- +.DS_Store +Thumbs.db +desktop.ini +**/build.force \ No newline at end of file