I have created a project(ProjectA [Class Library]) that contains a class with internal access modifier in c# (VS2015), target framework 4.5.2. I have generated public key and used in the asssemblyinfo.cs as shown in code below.
[assembly:InternalsVisibleTo("ProjectB,PublicKey=publickey")]
ProjectA (Class library) gets compiled. Now I am referencing this (ProjectA)dll from "ProjectB"(class library) and calling the function in the ProjectA Class. Project B is also strongly signed. When I compile ProjectB, I get compile time error:
error CS0122: 'Queries' is inaccessible due to its protection level
I followed the steps mentioned here. I would appreciate if anyone could help me with this issue.
Am I missing some steps? Do I need to use the public token somewhere. How can I use it?