Suppose I have a class in a website project in visual studio. It is written in vb.net. The rest of the pages are also written in vb.net. Classes are kept usually in the 'App-Code' folder.
I want all my web pages to be able to call the public routines in the class. However, I do not want some other program to be able to reference the compiled class and call its functions.
So I looked at the 'friend' modifier in the msdn documentation, and found this:
Imports System.Runtime.CompilerServicesImports System<Assembly: InternalsVisibleTo("AssemblyB")>' Friend class. FriendClass FriendClassPublicsharedSub Test() Console.WriteLine("Sample Class")EndSubEndClass
The problem is that my project is a 'website' project (not a web-application) and I don't know how to refer to all my webpages. I don't even know if they are all part of one assembly. If so, maybe the app_code classes are also part of that one assembly.
If each class is its own assembly, then how can it refer to 'assembly B'. How do I name 'assembly B' in this case.
Thanks