When modifying a RESX file, I've noticed the "Access Modifier" option in the top toolbar.
There are three different options: public, internal, and no code generation. I'm guessing these determine which applications have access to these resource files, but I'm not exactly sure what the difference between the three options are.
I would assume public resources can be accessed from any project within the solution.
I would assume internal resources can only be accessed by the project in which the resource is defined.
I don't know what no code generation does.
What do the three options actually mean?
Your assumptions about 1 and 2 are correct.
Try setting the access modifier of a resource item which is used outside of the project in which it was defined from 'Public' to 'Internal' and then build your project again. You will get compiler errors similar to :
error CS0122: 'Resource' is inaccessible due to its protection level
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With