?
Solved

Visual Studio 2013 /  VB.NET   /   Cross solution web user controls

Posted on 2016-08-18
5
Medium Priority
?
57 Views
Last Modified: 2016-08-18
I have a web user control that I have developed for a particular solution in Visual Studio.

There is another solution that also needs the same web user control now.

How can I keep ONE code base for the web user control while still making it available to multiple solutions?

Can I put it into a DLL?  Create a new solution dedicated to the web user control that has the needed dependencies?

What is the best practice?

Keep in mind that the web user control has dependencies.  Up until now, this was not a problem because all of the needed dependencies resided in the same solution the web user control resides in.  So those dependencies (i.e. bootstrap and moment.js) will also have to be made available (somehow) to other solutions who won't necessarily have the same structure or supporting files.
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 41761189
creating a DLL is exactly the way to go. Think about all the various 3rd party controls library out there (Telerik, Infragistics, DevExpress, ...) they are all creating DLLs for you to reuse.
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 41761205
So essentially -- a new solution that compiles as a DLL library?

Let me ask you, are there any gotchas / tips / tricks when attempting to write something that will be shared among solutions?

In other words, what are the top 5 common problems people run into when they try to do this sort of thing?
0
 
LVL 5

Author Closing Comment

by:Tom Knowlton
ID: 41761207
Thanks!
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 41761213
it is a project that will compile as a DLL. A solution is a set of various projects.

It is easier to debug your component if you create a solution with both your web application project and your component project. The debugger will be able to go from one to the other as if it was a single project.
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 41761350
Okay...thanks again!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question