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 构建失败"