参考项目或大会 [英] Reference Project or Assembly
本文介绍了参考项目或大会的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含许多usercontrol项目的解决方案。
当我想在另一个项目中引用用户控件时,我可以选择
项目或程序集。 />
我选择哪一个会有所不同吗?
谢谢
I have a solution containing many usercontrol projects.
When I wish to reference a usercontrol in another project I can select
either the project or the assembly.
Does it make a difference which one I select?
Thanks
推荐答案
只是我,
我通常会引用该项目,允许VS.NET为我设计编译&
设置依赖项。
如果你引用程序集,那么你需要手动计算
compile&设置依赖项。您可以使用Project - Project Dependencies
来设置编译依赖项,我相信您需要手动将
各自的程序集添加到安装项目中。
我从未在引用项目时遇到任何实际问题,但是我已经看到开发人员对这两种方法都有问题的报告。
>
希望这有帮助
Jay
"只是我 < GR **** @ a-znet.com>在消息中写道
news:eU ************** @ TK2MSFTNGP11.phx.gbl ...
Just Me,
I normally reference the project, allowing VS.NET to work out compile &
setup dependencies for me.
If you reference the assembly, then you need to manually work out the
compile & setup dependencies. You can use "Project - Project Dependencies"
to set the compile dependencies, I believe you need to manually add the
respective assemblies to setup projects.
I''ve never had any real problems with referencing the project, however I
have seen reports on developers having problems with both methods.
Hope this helps
Jay
" Just Me" <gr****@a-znet.com> wrote in message
news:eU**************@TK2MSFTNGP11.phx.gbl...
我有一个解决方案包含许多用户控制项目。
当我想在另一个项目中引用用户控件时,我可以选择项目或程序集。
它选择哪一个有用?
谢谢
I have a solution containing many usercontrol projects.
When I wish to reference a usercontrol in another project I can select
either the project or the assembly.
Does it make a difference which one I select?
Thanks
是的。选择项目时,它只是用于调试。当你做
做最后的编译时,你应该首先编译子项目然后
引用父项目中编译的程序集。
Dan
"只是我 < GR **** @ a-znet.com>在消息中写道
news:eU ************** @ TK2MSFTNGP11.phx.gbl ...
Yes it does. When you select project it is simply for debugging. When you
do a final compile you should first compile the child project and then
reference the compiled assembly in the parent project.
Dan
" Just Me" <gr****@a-znet.com> wrote in message
news:eU**************@TK2MSFTNGP11.phx.gbl...
我有一个解决方案包含许多用户控制项目。
当我想在另一个项目中引用用户控件时,我可以选择项目或程序集。
它选择哪一个有用?
谢谢
I have a solution containing many usercontrol projects.
When I wish to reference a usercontrol in another project I can select
either the project or the assembly.
Does it make a difference which one I select?
Thanks
谢谢,但是你能告诉我原因吗?
我意思是如果我选择项目进行最终编译,会发生什么坏事
?
再次感谢
" SOLEX" <所以*** @ nowhere.com>在消息中写道
新闻:Oj ************** @ TK2MSFTNGP14.phx.gbl ...
Thanks, but can you tell me why?
I mean if I select the project for the final compile, what bad thing
happens?
Thanks again
"solex" <so***@nowhere.com> wrote in message
news:Oj**************@TK2MSFTNGP14.phx.gbl...
是的。选择项目时,它只是用于调试。当你进行最终编译时,你应首先编译子项目,然后在父项目中引用已编译的程序集。
Dan
只是我 < GR **** @ a-znet.com>在消息中写道
新闻:eU ************** @ TK2MSFTNGP11.phx.gbl ...
Yes it does. When you select project it is simply for debugging. When
you
do a final compile you should first compile the child project and then
reference the compiled assembly in the parent project.
Dan
" Just Me" <gr****@a-znet.com> wrote in message
news:eU**************@TK2MSFTNGP11.phx.gbl...
我有一个包含许多usercontrol项目的解决方案。
当我想在另一个项目中引用一个用户控件时,我可以选择项目或程序集。
我选择哪一个会有所不同吗?
谢谢
I have a solution containing many usercontrol projects.
When I wish to reference a usercontrol in another project I can select
either the project or the assembly.
Does it make a difference which one I select?
Thanks
这篇关于参考项目或大会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文