vb.net 错误“编辑器不支持文件 .VB 的扩展名”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20772094/
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
Error "Editor doesn't support the extension of file .VB"?
提问by Pritam
I converted VB6 project to VB.NET in Visual Studio 2008 but not able to open it in VS2010. Getting error
我在 Visual Studio 2008 中将 VB6 项目转换为 VB.NET,但无法在 VS2010 中打开它。获取错误
"Editor doesn't support the extension of file .VB"
“编辑器不支持 .VB 文件的扩展名”
Any pointers in this will be helpful.
这方面的任何指示都会有所帮助。
回答by Thomas Kowalski
As far as I know, even if you do a conversion, it will never be compatible. 2008 could open it with compatibility mode, but 2010 can't. You have to recode everything.
据我所知,即使你做了一个转换,它也永远不会兼容。2008可以用兼容模式打开,2010不行。你必须重新编码一切。
回答by Kirk
As far as i know, they have discontinued the support of conversion to VS2010. The only last chance you have is to convert to project VS2008. I have had the same problem with a huge project. And I was not able to convert it completely.
据我所知,他们已经停止支持转换到 VS2010。您唯一的最后机会是转换到项目 VS2008。我在一个巨大的项目中遇到了同样的问题。我无法完全转换它。
Even if you are trying to convert the project with VS2008 and if you used 3rd party components in it, after the conversion the project will not be able to run after some tweaking.
即使您尝试使用 VS2008 转换项目并且如果您在其中使用了 3rd 方组件,转换后该项目也将无法在经过一些调整后运行。
If you have a small project with pure VB6 that does not involve 3rd party components, then you can give it a try. Chances are only 50/50 for you.
如果你有一个纯VB6的小项目,不涉及3rd方组件,那么你可以试一试。你的机会只有 50/50。
Conversion in VS2008 Simple answer : Don't waste your time for converting it and then fixing the problem in it, just re-write the whole thing in .NET which is very ideal
VS2008 中的转换 简单回答:不要浪费时间转换它然后修复其中的问题,只需在 .NET 中重新编写整个内容,这是非常理想的
回答by ashish Jain
Conversion of VB6 project to directly VS 2012 is not possible, Upgrade the project first by VS 2005 and then upgrade the vs2005 project to vs2012. It will work.
VB6工程直接转换到VS 2012是不可能的,先用VS 2005升级工程,再把vs2005工程升级到vs2012。它会起作用。