# 重置依赖
dotnet nuget locals all --clear
dotnet restore
# 添加依赖
dotnet add package CsvHelper --version 30.0.1
# 运行
dotnet run -- arg1 arg2 ...
https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/ https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/docs/compiling.md
apt-get install clang zlib1g-dev
dotnet publish --help
dotnet publish -c Release -o ./target
# 查看
dpkg --print-architecture
# https://learn.microsoft.com/en-us/dotnet/core/rid-catalog
dotnet restore && dotnet clean
dotnet publish -o=./target --sc -r=linux-x64 -c=Release
# # 通过.csproj配置?
dotnet publish -o=./target --sc -r=linux-x64 -c=Release -p:PublishAot=true -p:PublishTrimmed=true --disable-build-servers