question

Sergio-9977 avatar image
0 Votes"
Sergio-9977 asked Sergio-9977 commented

Create satellite assemblies for .NET apps

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

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

dotnet-csharp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JackJJun-MSFT avatar image
0 Votes"
JackJJun-MSFT answered Sergio-9977 commented

@Sergio-9977, 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.



image.png (23.5 KiB)
image.png (7.1 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes, it works.
I did not see the "Important" note
Thanks

0 Votes 0 ·