1.2 KiB
1.2 KiB
推荐开发命令
编译命令
# 主要编译命令 (在项目根目录)
./compile.bat
# 注意: 必须使用./ 前缀,不要使用cmd /c compile.bat
部署命令
# 部署插件到Navisworks
./deploy-plugin.bat
# 或使用PowerShell版本
./deploy-plugin.ps1
测试和调试
# 查看日志 (需要LogViewer工具)
tool\LogViewer.bat
# 测试需要重启Navisworks Manage 2026来加载新版本插件
包管理 (重要)
- 不要使用:
dotnet add package - 使用: 手动下载.nupkg文件并解压到packages/目录
- 路径格式:
packages\{PackageId}.{Version}\lib\{TargetFramework}\{Assembly}.dll
Git操作
git status
git add .
git commit -m "功能描述"
git push origin 2026 # 当前开发分支
Windows系统命令
# 文件查找
dir /s /b *.cs
find . -name "*.cs"
# 文本搜索
findstr /s /i "关键词" *.cs
grep -r "关键词" --include="*.cs" .
# 目录导航
cd src\Core
ls (使用LS工具而非ls命令)
MSBuild路径(编译脚本使用)
- Visual Studio 2022 Community
- Visual Studio 2022 Professional
- Visual Studio 2019 Professional
- 回退到dotnet build