将项目从 vb6 转换为 vb.net Visual Studio 2008
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11528797/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Convert project from vb6 to vb.net Visual Studio 2008
提问by Luis
I want to convert my old vb6 project to a vb.Net solution, when I open do: File->Open->Convert
this is what I get:
我想将我的旧 vb6 项目转换为 vb.Net 解决方案,当我打开时:File->Open->Convert
这就是我得到的:
And I can't find a way to show the available converters...
而且我找不到显示可用转换器的方法...
I have try:
我尝试过:
- Installing framework 1.0 since I read somewhere that it's needed
- Tried to install framework 2.0 but it's says "I have it" but it's not showing in the uninstall programs list
- Tried to install framework 3.0, same as before.
- I even try to add the
Microsoft.VisualBasic.UpgradeWizard.dll
viaregasm
but I can't open a console command in VS2008, only in VS2010 and I have read that VS2010 can't handle the conversion from vb6 to vb.net, it has to pass over VS2008 first.
- 安装框架 1.0,因为我在某处读到它需要
- 试图安装框架 2.0,但它说“我有它”但它没有显示在卸载程序列表中
- 尝试安装框架 3.0,与以前相同。
- 我什至尝试添加
Microsoft.VisualBasic.UpgradeWizard.dll
viaregasm
但我无法在VS2008中打开控制台命令,只能在VS2010中并且我已经读到VS2010无法处理从vb6到vb.net的转换,它必须首先通过VS2008。
Thanks in advance!
提前致谢!
回答by Luis
Well, the solution was to install Visual Studio 2005, then the converters were available:
嗯,解决方案是安装 Visual Studio 2005,然后转换器可用:
I suppose I needed Framework 1.0.
我想我需要 Framework 1.0。
It's not perfect, it has some errors, but its a step forward for a complete solution.
它并不完美,它有一些错误,但它向完整解决方案迈出了一步。
Of course I've found some other 3rd party conversion programs, but they are expensive:
当然,我找到了一些其他的 3rd 方转换程序,但它们很贵:
Hope it helps someone else!
希望它可以帮助别人!
回答by C-Pound Guru
No clue what that Convert dialog is for--there's nothing in the help on it.
不知道“转换”对话框是做什么用的——它的帮助中没有任何内容。
According to this Forum Post, you can open the vbp in Visual Studio and it should ask to convert the project (no option to open a .vbp file in VS 2010). However, even if it still did that in VS 2010, it's a tremendously bad idea.
根据此论坛帖子,您可以在 Visual Studio 中打开 vbp,它应该要求转换项目(在 VS 2010 中没有打开 .vbp 文件的选项)。然而,即使它在 VS 2010 中仍然这样做,这也是一个非常糟糕的主意。
See also this poston converting VB6 to VB.NET.
另请参阅有关将 VB6 转换为 VB.NET 的帖子。
Also, check these duplicated SO questions:
另外,请检查这些重复的 SO 问题:
- VB6 to VB.NET Conversion
- How to Switch a Large App From Vb6 to VB.net
- Best Strategy for Moving from VB6 to .NET
Edit:According to this MSDN Page, the conversion wizard only goes up to Visual Studio 2005
编辑:根据此 MSDN Page,转换向导仅适用于 Visual Studio 2005
Edit Edit:Per MarkJ's comment, Visual Studio 2008 includes the upgrade wizard. It's gone in VS 2010.
编辑 编辑:根据 MarkJ 的评论,Visual Studio 2008包括升级向导。它在 VS 2010 中消失了。