简体   繁体   English

在安装项目中,添加“项目输出”和“程序集”之间的区别

[英]In Setup project, difference between adding 'project output' and 'assembly'

I am not sure what is the correct thing to add. 我不确定要添加的正确内容是什么。 In the Setup Project, when one clicks on "View" -> Editor" -> "File System", and then right-clicks and a pop-up appears. 在安装项目中,单击“视图”->“编辑器”->“文件系统”,然后单击鼠标右键,将出现一个弹出窗口。

If Project A uses Project B, must I add B.dll (assembly), or the output of Project B? 如果项目A使用项目B,是否必须添加B.dll(程序集)或项目B的输出?

(Assuming that I have both Project A and Project B in the solution and that Project A has a reference to Project B.) (假设我在解决方案中同时拥有Project A和Project B,并且Project A引用了ProjectB。)

What is the output type of project B ? 项目B的输出类型是什么? if B 's output type is an assembly then adding B as project output or adding B as assembly would be same. 如果B的输出类型是程序集,则将adding B as project outputadding B as assembly将是相同的。

Simply add B as assembly, that should be fine. 只需将B添加为汇编,就可以了。

Adding Project Output will add what the project outputs, which may be one file or more, of any type. 添加项目输出将添加任何类型的项目输出,可能是一个文件或多个文件。 Since you have a project, add its output rather than just a DLL file. 由于您有一个项目,因此添加其输出,而不只是一个DLL文件。 This will help if the name ever changes or there are other changes 如果名称更改或其他更改,这将有所帮助

But if the DLL was a binary from somewhere, then just add it as a DLL. 但是,如果DLL是某个地方的二进制文件,则只需将其添加为DLL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM