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. General Programming
  3. .NET (Core and Framework)
  4. How to manage two apps

How to manage two apps

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorialannouncementcsharpregexquestion
11 Posts 6 Posters 0 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.
  • J Offline
    J Offline
    Jack_pt
    wrote on last edited by
    #1

    I'm creating two version of a program: A free version (myprogram) and an enhanced version (myprogram_PRO). The source code has to be released with the free version since it will be open source. Is there some way to have both programs in the same project? I can create two projects but if I make a change to one version then I have to be sure to update the other. If I have to add a dialog, for example, then it is not a simple matter to make everything match between the two. Any suggestions? Using .Net Jack

    D L B T 4 Replies Last reply
    0
    • J Jack_pt

      I'm creating two version of a program: A free version (myprogram) and an enhanced version (myprogram_PRO). The source code has to be released with the free version since it will be open source. Is there some way to have both programs in the same project? I can create two projects but if I make a change to one version then I have to be sure to update the other. If I have to add a dialog, for example, then it is not a simple matter to make everything match between the two. Any suggestions? Using .Net Jack

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      Hi Jack, this is interesting problem. Two versions of same app is usually handled by #ifdef and things like that. Anyway, it doesn't help with open source. It could be good idea to make a tool which will remove "pro" code. I wish I had time... I think it can be useful tool. Is anything like that already done? Try google... best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

      J A 2 Replies Last reply
      0
      • D DavidNohejl

        Hi Jack, this is interesting problem. Two versions of same app is usually handled by #ifdef and things like that. Anyway, it doesn't help with open source. It could be good idea to make a tool which will remove "pro" code. I wish I had time... I think it can be useful tool. Is anything like that already done? Try google... best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

        J Offline
        J Offline
        Jack_pt
        wrote on last edited by
        #3

        I think it may be already set up to be done with .Net but I can't figure it out. I usually just add a project and go at it. This is the first time I needed something more involved. I set up a test project and added two different projects to it (the solution they call it). That would at least make copying from one file to another easier. But when I tried it on my main project, it won't let me do it since they have the same internal names. Supposedly, you can just click on Rename to have .Net rename the project but that didn't work. Although it wouldn't surprise me to find I am doing it wrong. If anyone knows how to rename a project with .Net I would appreciate the help. Jack

        1 Reply Last reply
        0
        • J Jack_pt

          I'm creating two version of a program: A free version (myprogram) and an enhanced version (myprogram_PRO). The source code has to be released with the free version since it will be open source. Is there some way to have both programs in the same project? I can create two projects but if I make a change to one version then I have to be sure to update the other. If I have to add a dialog, for example, then it is not a simple matter to make everything match between the two. Any suggestions? Using .Net Jack

          L Offline
          L Offline
          Luis Alonso Ramos
          wrote on last edited by
          #4

          I think something can be accomplished with a good source control system. They have a feature called Branching, so that you can keep the separate source for two versions of your project. Say you have version 1.0 final, and then you start working on 2.0. If you find a big bug in 1.0, you fix it and release 1.0a. So you create a branch for updating 1.x code, while working on 2.0 (both based on 1.0) and you can merge branches, so 1.x modifications are merged into 2.0 code. Well, it's something like that. -- LuisR


          Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

          1 Reply Last reply
          0
          • D DavidNohejl

            Hi Jack, this is interesting problem. Two versions of same app is usually handled by #ifdef and things like that. Anyway, it doesn't help with open source. It could be good idea to make a tool which will remove "pro" code. I wish I had time... I think it can be useful tool. Is anything like that already done? Try google... best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

            A Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            :):((:omg::wtf:

            D 1 Reply Last reply
            0
            • J Jack_pt

              I'm creating two version of a program: A free version (myprogram) and an enhanced version (myprogram_PRO). The source code has to be released with the free version since it will be open source. Is there some way to have both programs in the same project? I can create two projects but if I make a change to one version then I have to be sure to update the other. If I have to add a dialog, for example, then it is not a simple matter to make everything match between the two. Any suggestions? Using .Net Jack

              B Offline
              B Offline
              benjymous
              wrote on last edited by
              #6

              You could have all your Pro functionality contained in a dll that acts as a plugin to the free version -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!

              J 1 Reply Last reply
              0
              • A Anonymous

                :):((:omg::wtf:

                D Offline
                D Offline
                DavidNohejl
                wrote on last edited by
                #7

                :confused: Never forget: "Stay kul and happy" (I.A.)

                1 Reply Last reply
                0
                • B benjymous

                  You could have all your Pro functionality contained in a dll that acts as a plugin to the free version -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!

                  J Offline
                  J Offline
                  Jack_pt
                  wrote on last edited by
                  #8

                  Thanks for your and Luis' suggestions. They both sound like soultions to the problem and I will look into them. Jack

                  1 Reply Last reply
                  0
                  • J Jack_pt

                    I'm creating two version of a program: A free version (myprogram) and an enhanced version (myprogram_PRO). The source code has to be released with the free version since it will be open source. Is there some way to have both programs in the same project? I can create two projects but if I make a change to one version then I have to be sure to update the other. If I have to add a dialog, for example, then it is not a simple matter to make everything match between the two. Any suggestions? Using .Net Jack

                    T Offline
                    T Offline
                    The Man from U N C L E
                    wrote on last edited by
                    #9

                    You may have bigger problems depending on the licence you use. For example if you licence the free version using the GNU licence [^]then you also have to distribute your PRO version under the GNU licence and provide the full source code as it is using code from your free version. If you use the BSD licence [^]you can just make sure you include the same copyright info in both versions.

                    J 1 Reply Last reply
                    0
                    • T The Man from U N C L E

                      You may have bigger problems depending on the licence you use. For example if you licence the free version using the GNU licence [^]then you also have to distribute your PRO version under the GNU licence and provide the full source code as it is using code from your free version. If you use the BSD licence [^]you can just make sure you include the same copyright info in both versions.

                      J Offline
                      J Offline
                      Jack_pt
                      wrote on last edited by
                      #10

                      Hmm, Thanks for mentioning this - I wasn't aware of it. I'm not sure if the BSD license is acceptable by the place I am submitting it to. In the event it is not, is it OK to have the free version, say "MyProgram," and then a non-free version but call it "My Other Program." And then mention in the description for My Other Program that it does everything My Program does and more. How do others get around this? I see free and non-free versions all of the time on various web sites. Jack

                      T 1 Reply Last reply
                      0
                      • J Jack_pt

                        Hmm, Thanks for mentioning this - I wasn't aware of it. I'm not sure if the BSD license is acceptable by the place I am submitting it to. In the event it is not, is it OK to have the free version, say "MyProgram," and then a non-free version but call it "My Other Program." And then mention in the description for My Other Program that it does everything My Program does and more. How do others get around this? I see free and non-free versions all of the time on various web sites. Jack

                        T Offline
                        T Offline
                        The Man from U N C L E
                        wrote on last edited by
                        #11

                        It was something I came across with the GNU license, which many people use for open source development. Where I work we had our own license drawn up by experts which covers our particular oddities. Writing your own license does solve the problem as you can say whatever you want. I have come across a number of forum posts recently that advocate the BSD license over the GNU license. For my own free stuff I just put in a "use this at your own risk" disclaimer. That way I can use it at my own risk in a non-free version and license that completely differently. The issue is more to do with making your source code available, or not, than anything else. If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850)

                        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