Programmatically determine assembly dependencies

  • Thread starter Thread starter Ken Durden
  • Start date Start date
K

Ken Durden

I'm hoping to develop a build process which only increments the
version number of an assembly when either its contents or one of its
dependencies has changed.

Our assembly structure translates directly to a directory structure,
so its pretty easy to see if any given assembly has changed. How can
I, from a build script, figure out what other assemblies any given
assembly references?

Also, is there anyway to re-version an assembly after it has been
built? I want to change the assembly version, not the file version.

Thanks,
-ken
 
Hi,

You can examine the assembly by the means of Reflection to find out which
assemblies it references. Or, you can analyze the project the assembly is
built from to get the same info in the more reliable way.
 
Back
Top