安装自定义 Visual Studio 模板时,是否必须安装互操作性内容?
我想使用我的工具安装自定义项目模板。该模板使用向导,因此我包含一个程序集并将其放入目标计算机上的 GAC 中。现在,该程序集具有许多依赖项,例如 Interop.IWshRuntimeLibrary.dll、EnvDTE 等。我应该重新分发这些程序集,还是可以确定目标计算机可以找到它们?
I want to install a custom project template with my tool. The template uses a Wizard, so I'm including an assembly and putting it into the GAC on the target machine. Now, this assembly has lots of dependencies like Interop.IWshRuntimeLibrary.dll, EnvDTE, and such. Should I redistribute these assemblies, or I can be sure the target machine can find them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,您至少不应该重新分发 EnvDTE,因为这是非法的。查看 Visual Studio 安装目录下的
redist.txt
文件,获取允许您重新分发的 Microsoft 文件列表。 EnvDTE 在安装了 Visual Studio 的计算机上始终可用。当谈到 Interop.IWshRuntimeLibrary.dll 时,我不太清楚它是什么,但我认为您可能被允许重新分发自动生成的互操作,但可能不是它“包装”的 DLL。在此处找到了有关此内容的帖子。
另外值得检查的是 VS SDK 附带的可再发行 MSI 包含的内容,因为您可以重新分发此 MSI 并将其安装为程序的一部分。
No, you should not redistribute EnvDTE at least since this would be illegal. Look in the
redist.txt
file under the directory where Visual Studio is installed for a list of microsoft files that you are allowed to redistribute. EnvDTE is always available on a machine with Visual Studio installed.When it comes to Interop.IWshRuntimeLibrary.dll I don't exactly know what it is, but I think that youmay be allowed to redistribute automatically generated interops, but probably not the DLL it "wraps". Found a post about this here.
Also worth checking is what the redistributable MSI that comes with the VS SDK contains, since you may redistribute this MSI and install it as part of your program.