From 7b90fafb9c873f8bff70361ac077cd1d39f996b8 Mon Sep 17 00:00:00 2001
From: "821644@qq.com" <821644@qq.com>
Date: Mon, 13 Apr 2026 19:46:35 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E7=BD=B2=E8=84=9A?=
=?UTF-8?q?=E6=9C=AC=EF=BC=9A=E7=A7=BB=E9=99=A4--no-restore=E5=B9=B6?=
=?UTF-8?q?=E5=9C=A8=E9=A1=B9=E7=9B=AE=E6=96=87=E4=BB=B6=E4=B8=AD=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0RuntimeIdentifier?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Haoliang.Api/Haoliang.Api.csproj | 2 ++
deploy.ps1 | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Haoliang.Api/Haoliang.Api.csproj b/Haoliang.Api/Haoliang.Api.csproj
index ecbb355..7fa46dd 100644
--- a/Haoliang.Api/Haoliang.Api.csproj
+++ b/Haoliang.Api/Haoliang.Api.csproj
@@ -4,6 +4,8 @@
net8.0
enable
enable
+ win-x64
+ true
diff --git a/deploy.ps1 b/deploy.ps1
index 1227c68..a6cfd79 100644
--- a/deploy.ps1
+++ b/deploy.ps1
@@ -123,8 +123,7 @@ function Build-Api {
-c Release `
-r $Runtime `
--self-contained $SelfContained `
- -o $ApiDir `
- --no-restore
+ -o $ApiDir
if ($LASTEXITCODE -ne 0) {
Write-Error "后端 API 构建失败"