why asp.net webapi generate a zh-Hans directory in bin directory?

heyangben 81 Reputation points
2022-05-26T10:08:48.267+00:00

I know this zh-hans means simplified Chinese, but I still don't understand the purpose of generating it
205753-zh-han1.png205754-zh-han2.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
301 questions
{count} votes

Accepted answer
  1. Lan Huang-MSFT 25,871 Reputation points Microsoft Vendor
    2022-05-30T07:06:58.593+00:00

    Hi @heyangben ,
    There may be some resource files for localization with the resx extension and the filename ending in the language (eg Resource1.en-us.resx). When the project is built, it generates the folder and contains the culture dll files. Or Nuget references Microsoft.Expression.Interactions.dll and System.Windows.Interactivity.dll, Microsoft.VisualStudio.Web.CodeGeneration.Design, etc.
    https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#satelliteresourcelanguages
    If you don't need these items, you can exclude them from the project.
    Add this line to your *.csproj

    <PropertyGroup>  
       <SatelliteResourceLanguages>en</SatelliteResourceLanguages>  
    </PropertyGroup>  
    

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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 comments No comments

0 additional answers

Sort by: Most helpful