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, 2013 at 9:00 PM

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

RHAD wrote Feb 14, 2013 at 10:25 AM

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

sebastienros wrote Feb 23, 2013 at 12:32 AM

Fixed in changeset d175bc06c437

arock3 wrote Mar 2, 2013 at 5: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?

Tomaxx wrote May 31, 2013 at 6:14 AM

In same spot as arock3. ...core\web.config...
. Fresh 1.6.1, did nothing but buid & initialize site to sql 2008 on local - in studios debug mode-
Now want to publish to common dev server (IIs) using studio 2012..
Web matrix publish works fine .
I am trying to establish/prototype development life cycle with this cms.
We intend on putting up hundreds of sites in orchard.
Folks are waiting on me. This delay has become uncomortable.
You would think this is basic function that should work out of the box? -
Did arock3 get working?

BenPower wrote Jun 18, 2013 at 12:05 AM

Did anyone managed to fix this? I can't get past it.

sfmskywalker wrote Aug 7, 2013 at 6:02 AM

Fixed in changeset f9279e9ac8e396f32c68093fcdbe5277220376ea