如何在 64 位应用程序和 VB2008 Express 上启用编辑并继续? [英] How do I enable Edit and Continue on a 64-bit application and VB2008 Express?

查看:24
本文介绍了如何在 64 位应用程序和 VB2008 Express 上启用编辑并继续?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试这样做时,我收到以下错误:

When I try to do that I get the following error:

不允许更改为 64 位应用程序.

Changes to 64-bit applications are not allowed.


@Wilka:在我选择工具 > 之前,该选项不可用.选项 >项目和解决方案 >常规并选中显示高级构建配置".虽然我从你的 MSDN 链接中找到了这个提示.所以如果你编辑你的评论,我可以把它作为接受的答案......


@Wilka: That option wasn't available until I selected Tools > Options > Projects and Solutions > General and check "Show advanced build configurations". Though I found this hint from your MSDN link. So if you edit your comment, I can make it the accepted answer...

谢谢大家!

请参阅我对这个问题的第一条评论,它不存在...不知何故...我可以选择目标框架(2.0、3.0 和 3.5),但我没有看到它对这个特定问题的任何用途...

Please see my first comment on this question, it's not there... Somehow... I can select Target framework though (2.0, 3.0 and 3.5), not that I see any use of that for this particular problem...

它不一定是 64 位程序,实际上,我更喜欢它是 32 位的,因为它更像是一个实用程序,它应该可以在 32 位系统上运行.

It doesn't have to be a 64bit program, actually, I rather prefer it to be 32bit anyway since it is more like a utility and it should work on 32bit systems.

另外,我在 64 位上运行 Vista.可能跟这个有关系?

Also, I'm running Vista at 64bit. Maybe that has something to do with it?

@Rob Cooper:现在我想起来了,在创建解决方案/项目/应用程序时,我从来没有机会选择 64 位或 32 位应用程序...并根据您的链接64 位调试 (X64)"MS VB2008 express edition可以实现.

@Rob Cooper: Now I think of it, I never had the chance of selecting either a 64bit or a 32bit application when creating the solution/project/application... And according to your link "64-Bit Debugging (X64)" is possible with MS VB2008 express edition.

顺便说一句,我发现了以下内容:

Oh btw, I found the following:

如果您正在调试 64 位应用程序并希望使用编辑并继续",则必须更改目标平台并将应用程序编译为 32 位应用程序.您可以通过打开项目属性"并转到编译"页面来更改此设置.在该页面上,单击高级编译选项并在高级编译器设置对话框中将目标 CPU 设置更改为 x86.链接

If you are debugging a 64-bit application and want to use Edit and Continue, you must change the target platform and compile the application as a 32-bit application. You can change this setting by opening the Project Properties and going to the Compile page. On that page, click Advanced Compile Options and change the Target CPU setting to x86 in the Advanced Compiler Settings dialog box. Link

但我没有看到目标 CPU 设置...

But I dont see the Target CPU setting...

推荐答案

你可以试试:

在 Visual Basic 2008 速成版中:构建菜单 > 配置管理器...

In Visual Basic 2008 Express Edition: Build menu > Configuration Manager...

更改 Active 解决方案平台:到...",选择x86",保存新的平台.

Change Active solution platform: to "...", choose "x86", save the new platform.

现在x86"选项可用编译设置.

Now the "x86" option is available in the Compile settings.

您可能需要先在工具 > 选项 > 中启用显示高级构建配置"项目和解决方案 > 一般

You may need to enable "Show advanced build configurations" first, in Tools > Options > Projects and Solutions > General

(来自 MSDN 论坛上的这篇文章)

(from this post on MSDN forums)

这篇关于如何在 64 位应用程序和 VB2008 Express 上启用编辑并继续?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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