比如想查看 /usr/share/dotnet/shared/Microsoft.AspNetCore.App/2.1.6/System.Data.SqlClient.dll 这个文件的版本号,请问用什么命令查看?
/usr/share/dotnet/shared/Microsoft.AspNetCore.App/2.1.6/System.Data.SqlClient.dll
1.自己写一个 控制台应用程序读取
找到一个好用的:
https://github.com/taylorjg/dotnet-versioninfo
更多tools:https://github.com/natemcmaster/dotnet-tools
@czd890: 用 dotnet-versioninfo 搞定了
# dotnet tool install --global dotnet-versioninf # versioninfo System.Data.SqlClient.dll FileVersionInfo.FileVersion: 4.6.26606.05