Hello,
There is no way to prevent these from being generated in a self-contained project by dotnet publish
.
If you only want to deploy specific languages, you can ignore the other language folders that you don't want and deploy only the directories for the languages you want.
Best Regards,
Leon Lu
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.