Is there a simple way to turn off including multiple language packs when using Nuget?
ajaxcontroltoolkit, c#, nuget
Solution
No you cannot switch this "feature off" Nuget simply downloads the archive package and places the files where thee package information file says the files are to go.
You need to manually omit these files yourself - or, build your own AjaxToolKit from their source with the extra languages omitted in advance.
Problem
I'm using nuget and am downloading the AjaxControlToolkit. The problem I have is that I don't want 20 extra folders to be created in the bin directory for different languages. Each folder only has a single file named 'AjaxControlToolkit.resources.dll' in it. I don't need the extra folders as our app will never be used with anything but English. The only way that I've been able to omit the files is to follow this: http://blogs.msdn.com/b/webdev/archive/2010/04/22/web-deployment-excluding-files-and-folders-via-the-web-application-s-project-file.aspx where you have to manually add a line to the actual project file. I feel like there should be a better way to do this. EDIT: This is the line that I currently add to my .csproj file: ``` <ExcludeFoldersFromDeployment>Bin\ar;Bin\cs;Bin\de;Bin\es;Bin\fr; Bin\he;Bin\hi;bin\it;bin\ja;bin\ko;bin\nl;bin\pl;bin\pt; bin\ru;bin\tr-TR;bin\zh-CHS;bin\zh-CHT</ExcludeFoldersFromDeployment> ```