NavisworksTransport/.serena/memories/suggested_commands.md

59 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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