Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
275 views
in Technique[技术] by (71.8m points)

c# - Localizing my display name attribute but can't reference my resource

I'm trying to localize my display name attribute but "ResourceType" can't find my resource file. Resource file is directly in my solution.

enter image description here

Also set my access modifier to public but still not working.

Also set my access modifier to public but still not working.

I can't even see it.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It appears the issue is that you are specifying a locale for the resource file without having a default one present in your solution.

DisplayName.resx would be the default language of your application and is needed for the resolution mechanism to work

DisplayName.<locale code>.resx will then override the default locale resources for that particular locale.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...