AutoUpdater.NET icon indicating copy to clipboard operation
AutoUpdater.NET copied to clipboard

So many directories with lang

Open BElluu opened this issue 4 years ago • 7 comments

Hello.

  1. Can I delete directories with langs which I do not use? If not, can I move them all to new directory?
  2. If no and no, please refactor it and scale them into one place (directory). image

BElluu avatar Jul 11 '21 18:07 BElluu

You can remove them. They are not required. Are you compiling it from source?

ravibpatel avatar Jul 12 '21 06:07 ravibpatel

Hi, I added AutoUpdater.NET using NuGet and then Pulished to directory. Maybe I did something wrong and that's why I have that directories :) Sorry, newbie here :D

BElluu avatar Jul 12 '21 07:07 BElluu

You can remove all the language directories. They are not necessary.

ravibpatel avatar Jul 12 '21 07:07 ravibpatel

Perfect! Thank you so much and have a nice day!

BElluu avatar Jul 12 '21 07:07 BElluu

Hi @ravibpatel I allowed myself to repopen this issue. Every new version which I compile, this directories with langs are created. Could it be that these folders weren't created during compilation?

BElluu avatar Sep 14 '21 09:09 BElluu

You can add msbuild task like this that can remove the folders when you compile it.

ravibpatel avatar Sep 14 '21 09:09 ravibpatel

Finally found another answer in my project. You can add the following element in PropertyGroup in csproj file and the language folders will not be there when build or publish:

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

hawkeye-stan avatar Jun 24 '22 03:06 hawkeye-stan