This project is read-only.

Orchard.Web.csproj config makes .hg files included in the deploy package

Topics: Core, Troubleshooting
Aug 14, 2012 at 12:42 PM
Edited Aug 14, 2012 at 12:43 PM

See this SO question of mine.

The line

<_CustomFiles Include="Media\**\*;App_Data\**\*;Modules\**\*;Themes\**\*;Core\**\*" Exclude="**\obj\**;@(Orchard-Web-Bins -> '**\%(Filename)%(Extension)');**\*.csproj.user;**\*.hg*" />

in Orchard.Web.csproj incorrectly excludes Mercurial files. With big repos this can cause deployment to fail.

The lines should be changed to

<_CustomFiles Include="Media\**\*;App_Data\**\*;Modules\**\*;Themes\**\*;Core\**\*" Exclude="**\obj\**;@(Orchard-Web-Bins -> '**\%(Filename)%(Extension)');**\*.csproj.user;**\.hg\**" />

to exclude .hg folders that cause trouble. This doesn't exclude hg files like .hgignore but I don't have the nerve to tweak it further.

Issue opened.

Aug 14, 2012 at 3:59 PM

The original exludes hg files the amendment excludes hg folders - combined they will exclude both.

<_CustomFiles Include="Media\**\*;App_Data\**\*;Modules\**\*;Themes\**\*;Extras\**\*" Exclude="**\obj\**;@(Orchard-Web-Bins -> '**\%(Filename)%(Extension)');**\*.csproj.user;**\*.hg*;**\.hg\**" />

Aug 14, 2012 at 4:04 PM

Note only ";**\*.hg*;**\.hg\**" instead of "**\*.hg*" or "**\.hg\**" is relevant to here.