vs2022程序包管理器控制台中文乱码

image

 在程序包管理器控制台中输入以下命令,即可解决中文乱码问题:

[Console]::OutputEncoding = [System.Text.Encoding]::UTF8

image