问题
Im building an extension that should be able to add an assembly to a projects references
This assembly is included with the VSIX
Is including the assembly with the VSIX a good idea ? How do I get the path to the assembly that was distributed with the VSIX ?
回答1:
To get the deployment directory of your VSIX extension, you can use the following code:
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)
Then just add your assembly name to this path.
来源:https://stackoverflow.com/questions/34974856/vsix-extension-adding-assembly-reference-to-project