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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top