计算机上缺少vsix安装程序,使用MSI安装程序部署VSIX

Matt..

9

这不是建议的方案.

从MSDN,"您不能使用Windows Installer程序包(MSI)来部署VSIX程序包.但是,您可以提取VSIX程序包的内容以进行MSI部署.本文档介绍了如何准备默认输出为VSIX程序包的项目包含在安装项目中."

以下是一些包含更多信息的页面:

添加有关如何完成此操作的更多信息:

您不能使用vsix本身,但您可以解压缩它(只需将vsix重命名为zip)并手动将所有文件添加到MSI中.正如它在VS博客上所说,你需要确保包含vsixmanifest文件(它应该在vsix中),并确保将"InstalledByMsi"属性设置为true.如果您有pkgdef文件,请确保包含该文件.

再次,正如它在VS博客上所说,应该安装所有这些文件

"%VSInstallDir%\Common7\Ide\Extensions\Your Company\Your Product\Version"

(并且您需要根据实际位置替换%VSInstallDir%.)

您询问:

如何使用visual studio安装程序将某些文件放在非特殊文件夹中.

标准vsix安装程序安装的Vsix软件包将始终将所有文件放在"%VSInstallDir%\ Common7\Ide\Extensions ..."中的同一文件夹下,但由于您使用的是MSI,因此您应该可以放置其他地方的其他文件,如果你想.

我自己没有试过这个,但我和vsix一起工作了很多.

我希望这有帮助!

https://marketplace.visualstudio.com/items?itemName=DonAirey.ResourceGenerator&ssr=false#qna This package contains a custom tool that can be used to replace the PublicResXFileCodeGenerator that Microsoft uses by default to generate resources. The biggest problem with the Microsoft default code generator is that the generated constructor is protected, which means that it can’t be used to construct strongly-typed resources in Visual Studio in Portable Class Libraries (PCL). Simply replace the PublicResXFileCodeGenerator custom tool on all the resources with ResourceGenerator and a portable version of the resources will be generated. To create portable resources, start with a Portable Class Library project. Create a directory for your resources (e.g. Strings, this step is optional). The right click on the project, select “Add…” and select Resources File from the options. Name the file whatever you want (e.g. Resources, Errors, etc.) and hit Add. Select the .RESX file from the Solution Explorer window and hit F4 to get to the properties. In the Custom Tools property, remove ResXFileCodeGenerator or PublicResXFileCodeGenerator and type in ResourceGenerator. Now your solution can use these strings from code or XAML, in WPF, Windows 8 or UWP projects. To add localization, create a copy of the resource file and add extensions for the cultures you want to support, such as en-GB, fr-FR or any other combination. After adding the resource file, updating the extension, and translating the text (I’m a big fan of Google Translate for this part), you will need to remove the ‘Custom Tool’ property and make sure that each of the culture files has an Embedded Resource as a Build Action. The directory should look like this:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值