简体   繁体   中英

how to change disabled access modifier of lang.resx within App-GlobalResources folder to public?

I am trying to use resources(language) within App-GlobalResources folder. But when i run the project it says this;

Cannot retrieve property 'Name' because localization failed. Type 'Resources.lang' is not public or does not contain a public static string property with the name 'Username'.

Access modifier is disabled so i can not change it to public which i think it is the source of problem, i am not sure though.

How can i get it work?

For solution: 

This works

Select the file in the Solution Explorer and go to it's properties by right-clicking on the file or by pressing F4.

In the properties window for this file, you can change the access modifier of the file from Protected to Public.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM