using c# class files from another website on the same server

hopefully this is a quick one. If I have c# class files on WebsiteA.com - can I reference them in WebsiteB.com? Both sites are on the same server, so I was hoping to reference them on a static address? (d:/inetpub/wwwroot/websiteA-com/app_code/MyClass.cs)

Is this possible? Or - do I have to copy the class file to WebsiteB.com and simply use that?

I just want to avoid repetition when I need to make any changes - avoiding changing both sites.

I've built both sites in .net 4 using visual studio 2010 express.

Thanks

Answers


If I were you, I would take all the classes needed by both websites and create a Class Library Project (DLL). Then reference that project in each website and use the classes. This means each site will be deployed with the same DLL but you will have a single project for common classes.

Hope this helps (I know it's not strictly the answer)


Need Your Help

Count if two criteria match - EXCEL formula

excel excel-formula

I have this table and I would like to create a formula which would count values based on true conditions from column A and column C.

Using integers/dates as terminals in NLTK parser

python regex parsing nltk earley-parser

I'm trying to use the Earley parser in NLTK to parse sentences such as:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.