I have a .net 4.8 project with a nuget dependency. This nuget is just a set of pug/js/css files which are copied to a folder on installation. Now I need to print the version of the package in some cases and struggle to do it. Normally I would do it like this:
var version = Assembly.GetExecutingAssembly()
.GetReferencedAssemblies()
.FirstOrDefault(x => x.Name == "...")
?.Version.ToString();
But in this case, there's no assembly.
Thank you!