Visual Studio question

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Visual Studio question

Post by AbleMods » Mon Aug 31, 2015 2:37 am

Let's say my client has two AbleCommerce sites. I've built a customization in a separate project class library that is necessary in both sites.

No problem, right? Just add that project to each respective solution.

But, what happens to the project DLL when you build the project? In the Project Properties, there's only one build directory you can specify.

Does Visual Studio know this project is referenced in two different sites and update the /bin/ folder DLL for each site automatically? What do other developers do when a single project needs built into multiple .Net applications? Is that when a build server comes into play?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Visual Studio question

Post by mazhar » Mon Aug 31, 2015 4:37 am

You can always create a shared folder like the one we have called 'Lib'. All your shared DLLs can go to lib and other projects can reference them from there. This way when ever you build the project it will update new version in shared folder. Finally when you build each website it will take the the updated copy from referenced shared folder.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Visual Studio question

Post by AbleMods » Mon Aug 31, 2015 5:03 am

Nice !!!!

See, that's why you guys make the BIG BUCKS !!
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Visual Studio question

Post by NC Software » Mon Aug 31, 2015 8:53 am

With the project referenced in the solution Visual Studio will build the referenced assembly and automatically put it with the web site (client project) bin folder. All referenced projects/assemblies are built and placed in the client (your web site(s)) /bin folder automatically. If you do a direct reference such as Mazhar suggests you don't get the benefit of "project references" vs. direct file references and can easily end up with something out of date and it's much harder to debug. You can also have one solution with both web site projects and your class library, just set one site as the startup project, you can control your build and compile from the solution build configuration dialog, etc.
Neal Culiner
NC Software, Inc.

Post Reply