Could not find the resource 2

Sergio23 271 Reputation points
2021-09-14T05:20:44.337+00:00

I have already asked this question, see link:
https://learn.microsoft.com/en-us/answers/questions/545293/could-not-find-the-resource.html?childToView=545634#answer-545634

The answer I received did not correspond to the question asked.
Anyone know how to fix this?
Thank you

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,309 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jack J Jun 24,296 Reputation points Microsoft Vendor
    2021-09-15T07:28:35.347+00:00

    @Sergio23 , based on my test, I can run the exe successfully in the final. Therefore, I recommend that you check the following steps if the same as you or not.

    First, Please check if your en-us folder has the Example.resources.dll and fr-FR folder has the Example.resources.dll.

    Second, Please ensure that your en-us folder and fr-FR folder is in the same directory as the resources files and the txt files.

    Third, We need to create the Example.cs manually(We could create a Example.txt file then change the extension to .cs) and copy all the code from the doc to Example.cs.(Example.cs is also in the same directory with resource files)

    Finally, Please check if you used the following command to generate a exe.

    csc Example.cs /resource:ExampleResources.resources    
    
    
    
    
    
    
     
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful