upgrade program for converting vb6 app to C#

后端 未结 3 758
心在旅途
心在旅途 2021-01-27 02:11

What is the best pathway to achieve this?

I know that VS2005 contains an upgrade mechanism. Do any later versions of VS contain this?

3条回答
  •  我在风中等你
    2021-01-27 02:36

    One way to do this, which was used successfully in one of my previous teams, is:-

    1. use the free Microsoft tools for upgrading from VB6 to VB.NET (e.g. http://msdn.microsoft.com/sv-se/vbrun/ms788233)
    2. compile the resulting code into assemblies
    3. decompile the assemblies into C# using a tool such as .NET Reflector, ILSpy, etc.
    4. cover the code in unit tests
    5. refactor until the code is managable (the initial code is likely to be quite ugly)

提交回复
热议问题