I wrote some classes that I use with many different projects.
For example, I use Library.Controls.FlatButton.cs
almost in every project.
The problem is when I add this as an "existing item"; the class gets created/copied in my soultion folder everytime. And each time I edit/update the contents of that class, I have to update all the Library.Controls.FlatButton.cs
files in every project folder.
I need to be able to edit a single source of FlatButton
class and when I compile/build a project (that uses the class file) gets updated to the new version of that class.
Question 1: Is there a way to do this?
I know that I can gather all these classes in a library project (Library.Controls
) and add it to each application solution as a dependency.
Question 2: Is this the only way to work from a single source of common library files? And if I do; will all the classes in the Library.Controls
namespace get compiled with every application, even if I've only used this FlatButton
class in the project?
Hope this is clear for you.. thanks