VSIX extension adding assembly reference to project

五迷三道 提交于 2019-12-24 13:50:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!