Files
petwash/PetWashControl/install-packages.ps1
GukSang.Jin 9c66b6cd82
2026-03-03 16:55:02 +08:00

27 lines
1.1 KiB
PowerShell

# PetWashControl NuGet 包安装脚本
# 在 Visual Studio 的程序包管理器控制台中运行此脚本
Write-Host "开始安装 PetWashControl 项目依赖包..." -ForegroundColor Green
# 安装 CommunityToolkit.Mvvm
Write-Host "安装 CommunityToolkit.Mvvm..." -ForegroundColor Yellow
Install-Package CommunityToolkit.Mvvm -Version 8.4.0 -ProjectName PetWashControl
# 安装 MQTTnet
Write-Host "安装 MQTTnet..." -ForegroundColor Yellow
Install-Package MQTTnet -Version 4.3.7.1207 -ProjectName PetWashControl
# 安装 Microsoft.Extensions.Hosting
Write-Host "安装 Microsoft.Extensions.Hosting..." -ForegroundColor Yellow
Install-Package Microsoft.Extensions.Hosting -Version 8.0.1 -ProjectName PetWashControl
# 安装 System.Net.Http.Json
Write-Host "安装 System.Net.Http.Json..." -ForegroundColor Yellow
Install-Package System.Net.Http.Json -Version 8.0.1 -ProjectName PetWashControl
# 安装 System.Text.Json
Write-Host "安装 System.Text.Json..." -ForegroundColor Yellow
Install-Package System.Text.Json -Version 8.0.5 -ProjectName PetWashControl
Write-Host "所有依赖包安装完成!" -ForegroundColor Green