How can I have .cs files another folder than in the App_Code folder of an ASP.net website?

I would like to share a couple files between multiple web sites running on one server. The files are typical files that reside in the App_Code folder, but now, whenever I do a change in one of the App_Code files, I must copy them to the other web sites. I want to have every website look for and compile the file from a common folder outside the web site folder. Each website project should then somehow link to that folder or file, maybe from the web.config or something. How can I do this?
lefodnesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

karl-henrikCommented:
I would create a ClassLibrary for the sites and then add a reference from the Websites to the ClassLibrary.

See here for reference

Hope that helps
//Karl-Henrik.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lefodnesAuthor Commented:
Thank you for the suggestion and the link. It was not exactly how I wanted it, I really need a way of not having the cs files only in the App_Code-folder. I like to collect the files with other files in folders with related functions.
0
lefodnesAuthor Commented:
Sorry, last post was submitted before I got it edited correctly.
Your solution was not exactly how I wanted it, but that might not even be possible. But your solution will work with a few changes in the code. Thank you for your support.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.