添加注释
This commit is contained in:
@@ -73,7 +73,7 @@ if (Test-Path "$output\$packageId.nuspec") { Remove-Item -Path "$output\$package
|
||||
# 构建项目(确保生成pdb和xml文件)
|
||||
Write-Host "1. 正在构建项目..."
|
||||
Write-Host "当前目录: $scriptDir"
|
||||
dotnet build "$scriptDir\Toprie\Toprie.csproj" -c Debug -o "$output" /p:DebugSymbols=true /p:DebugType=full /p:DocumentationFile=JoyD.Windows.CS.Toprie.xml
|
||||
dotnet build "$scriptDir\Toprie\Toprie.csproj" -c Debug /p:DebugSymbols=true /p:DebugType=full
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host "错误: 构建失败!" -ForegroundColor Red
|
||||
@@ -81,11 +81,27 @@ if ($LASTEXITCODE -ne 0) {
|
||||
}
|
||||
|
||||
# 验证DLL是否存在
|
||||
if (!(Test-Path "$output\$actualDllName")) {
|
||||
Write-Host "错误: 在输出目录中找不到$actualDllName!" -ForegroundColor Red
|
||||
$binDebugPath = Join-Path "$scriptDir\Toprie" "bin\Debug"
|
||||
if (!(Test-Path "$binDebugPath\$actualDllName")) {
|
||||
Write-Host "错误: 在$binDebugPath目录中找不到$actualDllName!" -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
|
||||
# 将构建文件复制到Output目录
|
||||
Write-Host "正在将构建文件复制到Output目录..."
|
||||
Copy-Item -Path "$binDebugPath\$actualDllName" -Destination $output -Force
|
||||
Write-Host "已复制$actualDllName到$output"
|
||||
|
||||
if (Test-Path "$binDebugPath\$actualPdbName") {
|
||||
Copy-Item -Path "$binDebugPath\$actualPdbName" -Destination $output -Force
|
||||
Write-Host "已复制$actualPdbName到$output"
|
||||
}
|
||||
|
||||
if (Test-Path "$binDebugPath\$actualXmlName") {
|
||||
Copy-Item -Path "$binDebugPath\$actualXmlName" -Destination $output -Force
|
||||
Write-Host "已复制$actualXmlName到$output"
|
||||
}
|
||||
|
||||
# 直接使用原始文件名,无需复制重命名
|
||||
Write-Host "使用原始文件名: $actualDllName"
|
||||
|
||||
@@ -362,4 +378,4 @@ if (Test-Path $localNugetConfigPath) {
|
||||
}
|
||||
|
||||
Write-Host "
|
||||
发布过程完成"
|
||||
发布过程完成"
|
||||
|
||||
Reference in New Issue
Block a user