[英]How to change vsix default installation location
I'm developing a Visual Studio extensibility project using VSIX. 我正在使用VSIX开发Visual Studio可扩展性项目。 By default, the VSIX file will install the assemblies in one of the following folders:
默认情况下,VSIX文件将程序集安装在以下文件夹之一中:
C:\Users\<UserName>\Appdata\Local\Microsoft\VisualStudio\10.0Exp\Extensions\Microsoft\<GPName>
C:\Users\<UserName>\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Microsoft p&p\<GPName>
Is it possible to change the output location? 是否可以更改输出位置?
You can always easily find your own assemblies: 您总是可以轻松找到自己的程序集:
typeof(MyPackage).Assembly.Location
and calculate paths to other assemblies bundled within your package. typeof(MyPackage).Assembly.Location
立即获得正确的路径,并计算到您的程序包中捆绑的其他程序集的路径。 But, I think this will not work if the package was registered into GAC myPackage.UserLocalDataPath
the VS will return you the correct (blah)/Extensions directory, located somewhere in (youruser)-(appdatalocal) folder, and then you may scan deeper into your folders and folders of other packages myPackage.UserLocalDataPath
,VS会返回正确的(blah)/ Extensions目录,该目录位于(您的用户)-(appdatalocal)文件夹中的某个位置,然后您可以更深入地扫描您的文件夹和其他软件包的文件夹 It may sound like a lot of work - but it isn't; 听起来可能需要做很多工作-但事实并非如此; couple of lines, x-teen at most.
几行,最多x十五。
No it's not possible. 不,这不可能。 The VSIX installer chooses where to place your assemblies and the VSIX has no input into this process
VSIX安装程序选择将程序集放在何处,而VSIX在此过程中没有输入
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.