Create satellite assemblies for .NET apps

Sergio23 271 Reputation points
2021-09-21T03:25:57.48+00:00

Link: Create satellite assemblies for .NET apps | Microsoft Learn

Hello
I tried the example program (see link): "Create satellite assemblies for .NET apps", but there is an error.

Error
Unhandled Exception: System.Resources.MissingManifestResourcesException: Could not find any resources appropriate for the specified culture or neutral culture. Make sure "Example.Greating.resources" was correctly embedded or linked into assembly "Example" at compile time, or that all the satellite assemblies required are loadable and fully signed.

I followed the instructions step by step, I don't understand what I'm doing wrong.
Thank you

Developer technologies C#
0 comments No comments
{count} votes

Accepted answer
  1. Jack J Jun 25,296 Reputation points
    2021-09-21T07:14:38.203+00:00

    @Sergio23 , based on my test, I reproduced the same error with you.
    Please change the following code in the Example.cs.

    Change

      ResourceManager rm = new ResourceManager("Example.Greeting",  
                                                      typeof(Example).Assembly);  
    

    To

      ResourceManager rm = new ResourceManager("Greeting", typeof(Example).Assembly);  
    

    Also, it is mentioned in the Microsoft doc:

    133846-image.png

    After you changed the above code and compile the app again, you can see the following result.

    133902-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.