3

Resolved

Team Foundation Services (Preview) Build to Azure Websites (Preview) Failing on Orchard.Web\Core\web.config

description

The full log and details can be found at this link: http://orchard.codeplex.com/discussions/403728

In short, I cannot get Team Foundation Services to complete a build of Orchard due to this error:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets (2352): Could not open Source file: Could not find a part of the path 'C:\a\src\Orchard\Trunk\src\Orchard.Web\Core\web.config;Core\web.config'.

There is an image on the link above which should make it more clear also.

Steps to reproduce:
  1. Set up a Team Foundation Services Account
  2. Grab a fresh copy of Orchard 1.6 from source control
  3. Remove Media folder from Orchard.Web project (due to error discussed here: http://orchard.codeplex.com/discussions/400285 - I hope someone actually created an issue for that)
  4. Add complete Solution into Source Control
  5. Add "lib" folder into Source control aslo as a lot of projects reference libraries from there
  6. Commit the files to Team Foundation Services
  7. Using Team Explorer set up a Build Definition (Mine was created for me when I connected my Team Foundation Service to my Azure Website account)
  8. Edit Build Definition Process section "Solution to Build" to point to $/Orchard/Trunk/src/Orchard.sln (assuming you called your folder "Trunk" - adjust accordingly
    1. Right click on the Build Definition and "Queue New Build"
  9. System will attempt to build and should throw same error I am seeing

comments

sebastienros wrote Jan 29 at 8:00 PM

TODO: 'D:\Orchard\Orchard3\src\Orchard.Web\Media\web.config;Media\web.config'. is not a valid filename

RHAD wrote Feb 14 at 9:25 AM

Take a look here, I managed to get it up and running with these steps

sebastienros wrote Feb 22 at 11:32 PM

Fixed in changeset d175bc06c437

arock3 wrote Mar 2 at 4:25 AM

I applied the fix for this on the media items, but still getting the error on the file

src\Orchard.Web\Core\web.config;Core\web.config'

Any thoguhts?