This project is read-only.


FilesToIncludeForPublish: AllFilesInProjectFolder causes all the module bins to be deployed too


This line in Orchard.Web.csproj: <FilesToIncludeForPublish>AllFilesInProjectFolder</FilesToIncludeForPublish> causes (together with newly added <PackageAsSingleFile>false</PackageAsSingleFile> line) the contents of the bin folders in modules to be deployed too. The result is that about 2GB is being deployed instead of around 200MB because of the same assemblies duplicated all over the place.

I'm not sure what's the reason behind this config being included like this (the default is "Only files needed to run this application") but unless it solves something that is critical and is absolutely impossible to solve otherwise it is the wrong solution.
Closed Sep 3, 2013 at 10:10 PM by Piedone
Fixed by Daniel Stolt


jtkech wrote Sep 2, 2013 at 8:34 PM

I think it's because you are in the debug configuration of visual studio. Try to compile and deploy in the release one

Piedone wrote Sep 2, 2013 at 8:55 PM

Thanks, but it's not that. This would have been the case with 1.7 but not with the latest source. The latest source includes the AllFilesInProjectFolder also for Release, and this is causing my problem.

jtkech wrote Sep 2, 2013 at 11:14 PM

Sorry, you're right

I also had other points that I had to correct manually. But I will first try it again with the latest source...