VSIX: get/add/remove references
-
11-02-2021 - |
题
How can I list references for a selected project? And add a new reference to a dll on disk?
解决方案
You can either:
- manipulate the project xml directly or
- 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..
不隶属于 StackOverflow