Frage

How can I list references for a selected project? And add a new reference to a dll on disk?

War es hilfreich?

Lösung

You can either:

  1. manipulate the project xml directly or
  2. you can use the automation model

The automation model, is the better of the two, the code project article below shows you examples of getting and adding references to a project and the first article shows you how you can use the DTE from outside of Visual Studio itself.

This should give you a head start..

http://www.mztools.com/articles/2005/MZ2005005.aspx

http://www.codeproject.com/KB/macros/EnvDTE.aspx

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top