查找$ version $ / assemblyVersion的Nuget运行时值

经过一些研究,Microsoft的文档说Assembly Version应该在AssemblyInfo.cs或.csproj文件中。

However i found some examples like https://github.com/aspnet/AspNetKatana having the version listed under CommonAssemblyInfo.cs for all subproject, And in other cases the AssemblyVersion is wrapped in IF ELSE statements according to the runtime environment.

有没有办法检索在编译/运行时使用的实际AssemblyVersion?

也许使用dotnet.exe / nuget.exe?

评论