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
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)