dotnet publish -r win-x64 -c Release -o ./bin/output
dotnet publish -r win-x64 -c Release -o ./bin/single /p:PublishSingleFile=true
dotnet publish -r win-x64 -c Release -o ./bin/single /p:PublishSingleFile=true /p:PublishTrimmed=true
参考文章 https://baijiahao.baidu.com/s?id=1671694782936042392&wfr=spider&for=pc