From 00ecfe3a9764d8dbda3ac1e0bd6d5baabe7ff1c2 Mon Sep 17 00:00:00 2001 From: zqm Date: Thu, 23 Oct 2025 15:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=8F=91=E5=B8=83=E5=88=B0?= =?UTF-8?q?=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Windows/CS/Framework4.0/Toprie/publish-nuget.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Windows/CS/Framework4.0/Toprie/publish-nuget.ps1 b/Windows/CS/Framework4.0/Toprie/publish-nuget.ps1 index 23bd38b..88c98f2 100644 --- a/Windows/CS/Framework4.0/Toprie/publish-nuget.ps1 +++ b/Windows/CS/Framework4.0/Toprie/publish-nuget.ps1 @@ -161,6 +161,16 @@ $contentTypesPath = Join-Path $tempDir "[Content_Types].xml" Set-Content -LiteralPath $contentTypesPath -Value "" Write-Host "已在 $contentTypesPath 创建[Content_Types].xml" +# 复制nuspec文件到包结构根目录 +$sourceNuspecPath = Join-Path $output "$packageId.nuspec" +$destNuspecPath = Join-Path $tempDir "$packageId.nuspec" +if (Test-Path $sourceNuspecPath) { + Copy-Item -Path $sourceNuspecPath -Destination $destNuspecPath -Force + Write-Host "已复制nuspec文件到包结构: $destNuspecPath" +} else { + Write-Host "警告: 找不到nuspec文件 $sourceNuspecPath" -ForegroundColor Yellow +} + # 创建zip文件并将其重命名为nupkg $zipPath = Join-Path $output "temp_manual.zip"