VS2010中C ++/CLI中的程序集版本 [英] Assembly versions in C++/CLI in VS2010

查看:129
本文介绍了VS2010中C ++/CLI中的程序集版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在VS2008上工作时,一个简单的重新编译选择了最新的程序集,但是自从移植到VS2010之后,我发现我必须在我的C ++/CLI模块中删除对该程序集的引用,并在选择重新编译之前重新添加该程序集的引用.上.

例如窗体程序集访问数据库处理程序程序集.

我需要设置开关还是其他功能"?

When I was working on VS2008 a simple recompile picked up the latest assembly, but since migrating to VS2010 I find that I have to remove the reference to the assembly in my C++/CLI modules and re add it before the recompile is picked up.

e.g. Form Assembly accessing a database handler assembly.

Is there a switch I need to set or is it another ''feature''

推荐答案

我不认为这是C ++/CLI特有的,同样的问题VS 2010在C#项目中也会发生.我相信所发生的是所引用程序集的本地副本,并且在修改并重新编译原始程序集项目时,VS不会更新本地副本.到目前为止,我发现的唯一解决方案是删除本地副本,然后进行构建.这仍然很烦人,但比删除/重新添加引用要好.我不知道此问题是否已在SP1中修复,因为我尚未安装该问题!
I don''t think this is C++/CLI specific, the same problem occurs with C# projects too with VS 2010. I believe what happens is that a local copy of the referenced assembly is made, and when the original assembly project is modified and recompiled, VS does not update the local copy. The only solution I''ve found so far is to delete the local copies and then do a build. This is still annoying, but better than removing/re-adding the reference. I don''t know if this is fixed in SP1 as I have not installed that yet!


我不确定是否有帮助,但我会尝试设置复制本地"选项(来自引用的属性"窗口)设置为False,因此VS不会进行本地复制并重新选择上次编译的版本(特定于C#的方法). C ++/CLI可能实现类似的方法.
问候
I''m not sure if it helps, but I would try to set "Copy Local" option (from Properties window of a reference) to False, thus VS wouldn''t make a local copy and repick the last compiled version (C# specific approach). C++/CLI might implement a similar approach.
Regards


这篇关于VS2010中C ++/CLI中的程序集版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆