Grreting guys,
A problem is bothering me for a few days and I thought may be it's time I share it with the community.
I need to make changes to an old project in the corp. This Dll references a third party dll and uses an Internal Class in that DLL. The referenced Dll had this file declared as a friend or InternalVisibleTo was set to this file name and publicToken.
Now, I want the referenced dll to allow me to access it's Internal contents but in my project I get the error "'BlaBla' is inaccessible due to its protection level" which clearly states that it wont allow me to access an Internal class from a new Dll.
Solutions I have tried so far:
Used Ildasm on the referenced DLL and in the il file in the InternalVisibleTo section for my file, I removed the whole PublicTokenKey. Ilasm it again but no success.
Made a new Strongly Typed name for my dll same as the name it had before, but it didn't work.
ilasm foo.dll /dll
So now I am left here unable to go any further. I really appreciate any helps or discussions related to this matter.
PS: I want to share a question very similar, which I followed line by line and it didn't work https://stackoverflow.com/a/12202623/861489