Hello @zequion,
You can try to add following line into your project file(.csproj), delete the project cache(bin, obj folders) and rebuild your project to limit the generation of those "language" folders.
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
The project file(.csproj) can be opened by right-clicking your project => Unload Project => right-clicking it again => Edit Project File. After you modify the project file, remember to right-click the project again and select Reload Project.
This line <SatelliteResourceLanguages>en-US</SatelliteResourceLanguages> should be added in <PropertyGroup></PropertyGroup>, for example:
<PropertyGroup>
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
</PropertyGroup>
For more details, kindly see this document:
For deleting those .dll files, you can add a post-build event. Right-click your project => Properties => select Build => Events => in "Post-build event" box => type command like del "C:\XXXX\XXXX\*.dll". * is a wildcard character.
Update1:
It’s not possible to limit the generation of the obj directory.
Chaning the output directory to an intermediate/temp directory and delete the temp folder later may be a choice.
Related document: To set the intermediate output directory for a project(.NET projects)
and commands:
`rd /s /q path`, `rmdir /s /q path`
Sincerely,
Tianyu
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.