Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. What C# tools do you recommend?

What C# tools do you recommend?

Scheduled Pinned Locked Moved The Lounge
csharptoolshelpquestion
53 Posts 35 Posters 31 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Nathan Minier

    Resharper. And don't give it up, C# isn't terribly difficult. Like an English muffin, it just has many nooks and crannies, and is infinitely better with butter(Resharper). I would suggest a functional clone rather than direct conversion, though. It's unlikely that a VB6 program is structured in a way that will work well in C#.

    "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

    S Offline
    S Offline
    Slow Eddie
    wrote on last edited by
    #7

    Thanks, I will check it out. And yes I am actually re-writing a functional clone as you suggest. Sorry I did not make that clearer. The Program is around 400,000 lines of code. :omg:

    N T M 3 Replies Last reply
    0
    • N Nish Nishant

      Unless it's less than 1000 lines of code, avoid auto-conversion software. I'd strongly recommend re-designing and then re-writing it in C#. The re-design is important because things are done way differently in modern .NET than it was during the VB6 days.

      Nish Nishant Consultant Software Architect Ganymede Software Solutions LLC www.ganymedesoftwaresolutions.com

      S Offline
      S Offline
      Slow Eddie
      wrote on last edited by
      #8

      Thanks, I will check it out. And yes I am actually re-writing a functional clone as you suggest. Sorry I did not make that clearer. The Program is around 400,000 lines of code.

      N 1 Reply Last reply
      0
      • N Nathan Minier

        Resharper. And don't give it up, C# isn't terribly difficult. Like an English muffin, it just has many nooks and crannies, and is infinitely better with butter(Resharper). I would suggest a functional clone rather than direct conversion, though. It's unlikely that a VB6 program is structured in a way that will work well in C#.

        "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

        C Offline
        C Offline
        CodeWraith
        wrote on last edited by
        #9

        Nathan Minier wrote:

        Resharper.

        Gesundheit! Honestly, I love that nagging thing almost as much as I do JavaScript!

        I have lived with several Zen masters - all of them were cats.

        1 Reply Last reply
        0
        • S Slow Eddie

          Thanks, I will check it out. And yes I am actually re-writing a functional clone as you suggest. Sorry I did not make that clearer. The Program is around 400,000 lines of code.

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #10

          Yeah, you'd need to re-think the database schema, what database approach to use, do you keep it as desktop or do you roll out parts of it as web apps, host it on the cloud (AWS/Azure), use SOA and componentize the application structure, using Web API wrapper layers, designing for scalability, etc. Sounds like a really fun project. :thumbsup:

          Nish Nishant Consultant Software Architect Ganymede Software Solutions LLC www.ganymedesoftwaresolutions.com

          J S 2 Replies Last reply
          0
          • S Slow Eddie

            I am trying to convert my VB6 code to C# (Desktop programs). I am looking for tools that will help increase my efficiency and shorten the learning curve. Any suggestions? Other than "give it up!" :laugh:

            If everything seems to be going well you are obviously overlooking someone or something....

            H Offline
            H Offline
            HobbyProggy
            wrote on last edited by
            #11

            Best Tool for me is ReSharper

            Rules for the FOSW ![^]

            if(this.signature != "")
            {
            MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
            }
            else
            {
            MessageBox.Show("404-Signature not found");
            }

            1 Reply Last reply
            0
            • W W Balboos GHB

              Delete and rewrite? Seriously - give that a thought: the logical flow is not the same in these two languages. I remember way back, when I was teaching myself C and how, after some time, I finally stopped writing FORTRAN programs with C syntax and started to write real C programs. That goes for your conversion, too. Now, dropping that VB6, is your chance to finally do it right!

              Ravings en masse^

              "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

              "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

              S Offline
              S Offline
              Slow Eddie
              wrote on last edited by
              #12

              Yes I am actually re-writing a functional clone as you suggest. Sorry I did not make that clearer. The Program is around 400,000 lines of code. Can't delete, too many clients still successfully running their businesses with the VB6 code. :rolleyes:

              all out of aphorisms...

              W 1 Reply Last reply
              0
              • S Slow Eddie

                Thanks, I will check it out. And yes I am actually re-writing a functional clone as you suggest. Sorry I did not make that clearer. The Program is around 400,000 lines of code. :omg:

                N Offline
                N Offline
                Nathan Minier
                wrote on last edited by
                #13

                No worries, just wanted to make sure you didn't end up down the rabbit hole :)

                "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

                1 Reply Last reply
                0
                • S Slow Eddie

                  Yes I am actually re-writing a functional clone as you suggest. Sorry I did not make that clearer. The Program is around 400,000 lines of code. Can't delete, too many clients still successfully running their businesses with the VB6 code. :rolleyes:

                  all out of aphorisms...

                  W Offline
                  W Offline
                  W Balboos GHB
                  wrote on last edited by
                  #14

                  No real problem: let them keep doing what they're doing. Meanwhile, you write and debug the replacement. Switch over the willing. Note that, down the line, you'll have a much better chance of maintaining your (new) code.

                  Ravings en masse^

                  "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                  "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                  1 Reply Last reply
                  0
                  • N Nish Nishant

                    Yeah, you'd need to re-think the database schema, what database approach to use, do you keep it as desktop or do you roll out parts of it as web apps, host it on the cloud (AWS/Azure), use SOA and componentize the application structure, using Web API wrapper layers, designing for scalability, etc. Sounds like a really fun project. :thumbsup:

                    Nish Nishant Consultant Software Architect Ganymede Software Solutions LLC www.ganymedesoftwaresolutions.com

                    J Offline
                    J Offline
                    Jim_Snyder
                    wrote on last edited by
                    #15

                    He isn't kidding. I would LOVE to get into a project like that!

                    1 Reply Last reply
                    0
                    • N Nish Nishant

                      Yeah, you'd need to re-think the database schema, what database approach to use, do you keep it as desktop or do you roll out parts of it as web apps, host it on the cloud (AWS/Azure), use SOA and componentize the application structure, using Web API wrapper layers, designing for scalability, etc. Sounds like a really fun project. :thumbsup:

                      Nish Nishant Consultant Software Architect Ganymede Software Solutions LLC www.ganymedesoftwaresolutions.com

                      S Offline
                      S Offline
                      Slow Eddie
                      wrote on last edited by
                      #16

                      Converted database schema to SqlServer years ago. The VB6 Code runs fine on SQLServer2016. Using CodeTrigger to create the data access layers. Like it a lot.:cool:

                      Old men need love and respect too... (Did not believe this when I was 25...

                      1 Reply Last reply
                      0
                      • S Slow Eddie

                        I am trying to convert my VB6 code to C# (Desktop programs). I am looking for tools that will help increase my efficiency and shorten the learning curve. Any suggestions? Other than "give it up!" :laugh:

                        If everything seems to be going well you are obviously overlooking someone or something....

                        D Offline
                        D Offline
                        Dan Neely
                        wrote on last edited by
                        #17

                        What might be useful, if it exists, is a tool that would let you embed C# in VB6 or vice versa allowing you to incrementally rebuild the app one module at a time. THis's dependent on the legacy apps structure not being too horrible; but at 400k lines and worked well enough to be kept alive this long I'm assuming that it did have more software engineering that the average craplication that earned VB6 so much hate over the years.

                        Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                        S 1 Reply Last reply
                        0
                        • N Nathan Minier

                          Resharper. And don't give it up, C# isn't terribly difficult. Like an English muffin, it just has many nooks and crannies, and is infinitely better with butter(Resharper). I would suggest a functional clone rather than direct conversion, though. It's unlikely that a VB6 program is structured in a way that will work well in C#.

                          "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

                          S Offline
                          S Offline
                          Slacker007
                          wrote on last edited by
                          #18

                          Nathan Minier wrote:

                          Resharper.

                          :thumbsup::thumbsup:

                          1 Reply Last reply
                          0
                          • D Dan Neely

                            What might be useful, if it exists, is a tool that would let you embed C# in VB6 or vice versa allowing you to incrementally rebuild the app one module at a time. THis's dependent on the legacy apps structure not being too horrible; but at 400k lines and worked well enough to be kept alive this long I'm assuming that it did have more software engineering that the average craplication that earned VB6 so much hate over the years.

                            Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                            S Offline
                            S Offline
                            Slow Eddie
                            wrote on last edited by
                            #19

                            I have been a firm believer in Rokford Lhotka's Business Objects....

                            T 1 Reply Last reply
                            0
                            • S Slow Eddie

                              I am trying to convert my VB6 code to C# (Desktop programs). I am looking for tools that will help increase my efficiency and shorten the learning curve. Any suggestions? Other than "give it up!" :laugh:

                              If everything seems to be going well you are obviously overlooking someone or something....

                              F Offline
                              F Offline
                              F ES Sitecore
                              wrote on last edited by
                              #20

                              If all you're doing is converting it then what do you hope to gain? If you're not prepared to rewrite it just leave it as it is.

                              S 1 Reply Last reply
                              0
                              • N Nish Nishant

                                Unless it's less than 1000 lines of code, avoid auto-conversion software. I'd strongly recommend re-designing and then re-writing it in C#. The re-design is important because things are done way differently in modern .NET than it was during the VB6 days.

                                Nish Nishant Consultant Software Architect Ganymede Software Solutions LLC www.ganymedesoftwaresolutions.com

                                J Offline
                                J Offline
                                Jeremy Falcon
                                wrote on last edited by
                                #21

                                Exactly. Your post is the voice of experience talking.

                                Jeremy Falcon

                                1 Reply Last reply
                                0
                                • S Slow Eddie

                                  I am trying to convert my VB6 code to C# (Desktop programs). I am looking for tools that will help increase my efficiency and shorten the learning curve. Any suggestions? Other than "give it up!" :laugh:

                                  If everything seems to be going well you are obviously overlooking someone or something....

                                  K Offline
                                  K Offline
                                  kmoorevs
                                  wrote on last edited by
                                  #22

                                  You clearly are looking to move to C#, but if you really want to shorten the learning curve, consider converting/rewriting to VB.NET. Once you get it to that point, there are tools that can convert to C#. Why VB.NET first? The learning curve is much shorter and at least some VB6 code will work without too much fuss. (beware of the whole int/short/long issues) If you want a direct conversion to VB.NET from VB6, I VB 2008 was the last IDE that had a migration tool.

                                  "Go forth into the source" - Neal Morse

                                  T 1 Reply Last reply
                                  0
                                  • S Slow Eddie

                                    I am trying to convert my VB6 code to C# (Desktop programs). I am looking for tools that will help increase my efficiency and shorten the learning curve. Any suggestions? Other than "give it up!" :laugh:

                                    If everything seems to be going well you are obviously overlooking someone or something....

                                    J Offline
                                    J Offline
                                    Jeremy Falcon
                                    wrote on last edited by
                                    #23

                                    Just want to second what Nish said. Also, to plug to our old friend Tom Archer who works at Microsoft, it may be worth getting his book [^]. It's a bit dated now, but in this case that's good. It's a book that's specific about coming from a Visual Studio 6.0 world (from more of a C++ standpoint but still) to help with the fundamentals of C#. After the fundamentals, you can always read up on what's happened with the language lately... which has been a lot.

                                    Jeremy Falcon

                                    1 Reply Last reply
                                    0
                                    • F F ES Sitecore

                                      If all you're doing is converting it then what do you hope to gain? If you're not prepared to rewrite it just leave it as it is.

                                      S Offline
                                      S Offline
                                      Slow Eddie
                                      wrote on last edited by
                                      #24

                                      By "Converting" I meant re-writing while keeping all of the same functionality.

                                      1 Reply Last reply
                                      0
                                      • S Slow Eddie

                                        I am trying to convert my VB6 code to C# (Desktop programs). I am looking for tools that will help increase my efficiency and shorten the learning curve. Any suggestions? Other than "give it up!" :laugh:

                                        If everything seems to be going well you are obviously overlooking someone or something....

                                        P Offline
                                        P Offline
                                        Pete OHanlon
                                        wrote on last edited by
                                        #25

                                        Given that Resharper has already been mentioned, what other tools would be useful? Well, you might want to look into NDepend[^]. I use this tool a lot to check code quality; it's really useful for showing you dependencies and telling you the cost of those dependencies for instance. Then there's unit testing (whether or not you are a fan of TDD, having well written unit tests is a real bonus). You can go with something like NUnit, the Visual Studio unit tests, xUnit or so on. Speaking of unit testing, as your code grows you might want to invest in NCrunch[^]. It's a great way to see if your code changes have broken any tests without you having to remember to run the tests yourself. There are many other tools you can add as you grow, but I'd give these a look if I were you.

                                        This space for rent

                                        1 Reply Last reply
                                        0
                                        • S Slow Eddie

                                          I am trying to convert my VB6 code to C# (Desktop programs). I am looking for tools that will help increase my efficiency and shorten the learning curve. Any suggestions? Other than "give it up!" :laugh:

                                          If everything seems to be going well you are obviously overlooking someone or something....

                                          N Offline
                                          N Offline
                                          Nagy Vilmos
                                          wrote on last edited by
                                          #26

                                          Is there an underlying reason to re-write beyond the fact that the code is out of date? You may find, along with Nish's brilliant advice, that you could speed things up by wrapping the old functional parts into an API that can be called by the 'new' version. That way you don't need to rewrite everything from day 1 to get moving. Wrap the API that can be called by the new solution and then you can replace the functionality piece meal rather than all at once.

                                          veni bibi saltavi

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups