Last post Mar 08, 2021 11:20 PM by artem_s
Mar 08, 2021 07:47 PM|HelloWorld18|LINK
I'm trying to figure out the best way to share code between several web applications(VS2010, VS2019). I've started adding class library projects to a solution with generic code that I plan to reuse in several web applications. Can someone offer any advice
on the questions below?
Mar 08, 2021 10:33 PM|mgebhard|LINK
Class library are used to share code. Just create a reference to the library dll or drop the dll in the bin directly of the web project.
Mar 08, 2021 11:20 PM|artem_s|LINK
You may want to consider creating Nuget packages with your class libraries to be hosted on a local NuGet server.
That gives you a number of advantages over linking to DLLs locally, and they might not be relevant in your situations, but definitely play important role when you have more than one dev on the team or need to version library code (say some older, rarely-updated
solutions need older version of a particular library).