Author Topic: Name Suggestions for Same Code, Multiple Projects, Multiple Builds  (Read 3653 times)

0 Members and 1 Guest are viewing this topic.

CADbloke

  • Bull Frog
  • Posts: 342
  • Crash Test Dummy
I am writing an app that automates sharing code between Visual Studio Projects. The code file exists only once, it is never copied or moved. New projects get a link to the existing code so they can use it too. If you change the code anywhere it changes everywhere. There is only one code, it just gets used in as many projects as you like. The app creates those new projects and automates the maintenance of their contents.

Refer to this (rather convoluted, sorry) thread for more details if you are unclear: http://www.theswamp.org/index.php?topic=50202.msg553839#msg553839 ...read downwards from there. Actually, that may not make it any clearer but there are pictures!


MickD

  • King Gator
  • Posts: 3637
  • (x-in)->[process]->(y-out) ... simples!
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #1 on: October 23, 2015, 02:57:35 AM »
shared code?

I'm guessing in the other thread you discussed creating a library for said code but I have come across the same thing building for both Bricscad and AutoCAD and I just 'link' the files as you suggest.
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien

Keith Brown

  • Swamp Rat
  • Posts: 601
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #2 on: October 23, 2015, 06:22:43 AM »
Code Linker?


I usually just add a common project to my assemblies and then just merge them when I build the project.  Smart Assembly automates this for me.
Keith Brown | AutoCAD MEP Blog | RSS Feed
AutoCAD MEP 2014 / Revit MEP 2014 / EastCoast CAD/CAM addon / Visual Studio 2013

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #3 on: October 23, 2015, 06:24:19 AM »

Priscilla ??
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

JohnK

  • Administrator
  • Seagull
  • Posts: 10648
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #4 on: October 23, 2015, 06:24:49 AM »
xLink
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Keith Brown

  • Swamp Rat
  • Posts: 601
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #5 on: October 23, 2015, 06:27:14 AM »
xLink


I like this one.  I would maybe change it to vsLink to help spell out that it is for Visual Studio but a nice one anyway.
Keith Brown | AutoCAD MEP Blog | RSS Feed
AutoCAD MEP 2014 / Revit MEP 2014 / EastCoast CAD/CAM addon / Visual Studio 2013

JohnK

  • Administrator
  • Seagull
  • Posts: 10648
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #6 on: October 23, 2015, 06:28:26 AM »
xLink = cross link

VSxLink
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

CADbloke

  • Bull Frog
  • Posts: 342
  • Crash Test Dummy
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #7 on: October 23, 2015, 06:42:01 AM »
I like these suggestions. Keep it coming!

JohnK

  • Administrator
  • Seagull
  • Posts: 10648
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #8 on: October 23, 2015, 07:03:35 AM »
*them ...keep them coming.

LinX

And just because you VS people seem to love to partake in the iGame...

vsLinX

TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

CADbloke

  • Bull Frog
  • Posts: 342
  • Crash Test Dummy
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #9 on: October 23, 2015, 07:37:38 AM »
*them ...keep them coming.

LinX

And just because you VS people seem to love to partake in the iGame...

vsLinX
No  :p

JohnK

  • Administrator
  • Seagull
  • Posts: 10648
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #10 on: October 23, 2015, 07:56:05 AM »
maybe :)
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

CADbloke

  • Bull Frog
  • Posts: 342
  • Crash Test Dummy
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #11 on: October 23, 2015, 08:05:48 AM »
maybe :)
Nup, needs an "i" for the kids, or perhaps some crazy backslash if you're gunna go full Linux on it.

 

JohnK

  • Administrator
  • Seagull
  • Posts: 10648
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #12 on: October 23, 2015, 08:21:08 AM »
maybe :)
Nup, needs an "i" for the kids, or perhaps some crazy backslash if you're gunna go full Linux on it.

I'm just saying: out of five people that replied to this thread two of them suggested adding some reference back to "visual studio".  Walks like a duck, talks...*QUACK!*

*chuckle* sudo make me a sandwich

Linux guys have the "gnu" thing. The slash is shared with Unix, BSD, and Linux people (and many others). Do not give those linux weirdos any more power to group in with the Unix camp anymore then they already have. Besides, you people just remember the MS camp is outnumbered by far (more OSs use `that slash thingie' then those that don't) and it wouldn't hurt if you ventured out of your MS sandbox once and a while; even if it was to wander over to the Linux park.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

CADbloke

  • Bull Frog
  • Posts: 342
  • Crash Test Dummy
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #13 on: October 24, 2015, 08:54:26 PM »
Ok, I'm sober now so I can make more sense of this.
...edit...hangover is wearing off so even more sense...

I agree it should mention Visual Studio and I think the references to "link" are also a good idea, since that's what it does.
xLink = cross link

VSxLink
Yeah, that.

Code Linker?


I usually just add a common project to my assemblies and then just merge them when I build the project.  Smart Assembly automates this for me.
I think the obvious name there is probably the best one. VS Code Linker is where I'm gravitating towards ,everything else I have called is is a bit too obscure.

Smart Assembly would probably get the same result but this is cheaper. The reason I have gravitated towards linking in Visual Studio is so it is all right in front of me, I can read through the code in the IDE and see what it means in the context of the platform I'm working on at the time and figure out why I broke it and where. I don't have to learn anything new. I'm too old! Don't make me learn! (kidding but you get my gist).

I also wanted to be able to easily repurpose things I have already written so I can just drop it in and it will work. Mostly.

In any case, this is still evolving.  I hope to post the new one to Github in the next week or 2 with a wiki that makes at least a little sense.
« Last Edit: October 25, 2015, 07:30:19 PM by CADbloke »

CADbloke

  • Bull Frog
  • Posts: 342
  • Crash Test Dummy
Re: Name Suggestions for Same Code, Multiple Projects, Multiple Builds
« Reply #14 on: October 26, 2015, 10:19:43 PM »
In case you missed it in the other somewhat longer thread ...

I went with "Code Linker". You should have seen that renaming commit.  :tickedoff: . I should add more SEOness about it being for Visual Studio but it's late and I'm tired.

Published to Github.
...for those of you scrolling through looking for a link to the repo...

The Wiki is still a work in progress but it has some info about the GUI app and other things.

Please let me know what doesn't make sense. It's late, I'm tired but I just want to get it out to you. I will revisit it soon and edit my drivel.