简体   繁体   中英

Changing the localisation.resx always changes the public to internal modifier

When I change my localize.resx in our asp.net mvc application the public access modifier always gets changed to internal which causes build errors due to access level restrictions.

why is that?

Right click the resx file in Solution Explorer and select Properties. Change the Custom Tool to PublicResXFileCodeGenerator (just type it in). Now it will use public instead of internal.,

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