views:

91

answers:

3

i'm in the process or upgrading my CI configuration to Web Deployment projects 2010 (from 2008)

i'm geting a really strange issue durin build as shown below - i've been looking into it a a few hours to no resolve, and am starting to think the issue is elsewhere...)

C:\Program Files (x86)\MSBuild\Microsoft\WebDeployment\v10.0\Microsoft.WebDeployment.targets(103, 46): error MSB4092: An unexpected token ")" was found at character position 174 in condition "'$(_ExcludeWAPBaseIntermediateOutputPath)' == '' And !$([System.IO.Path]::IsPathRooted($(_ExcludeWAPBaseIntermediateOutputPath)))".

+1  A: 

Out of the blue, I think that your CI server doesn't use MSBuild to run the Build, so the property function $([System.IO.Path]::IsPathRooted(...) is not recognized.

Check that MSBuild 4 is the version used by your CI server.

madgnome
I think this has something to do with the old version of teamcity i was using.
Doug
P.s thanks for the effort of replying :-)
Doug
A: 

Although i had selected to use MSBUILD version 4 and the MSBUILD tools 4.0 it still failed - upon upgrading to the latest version of TeamCity all the issues went away :)

Doug
+1  A: 

I was also facing the same issue. Resolved by using correct tool version for MSBuild which is 4.0

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /noconsolelogger RunFxcop C:\Program Files\CruiseControl.NET\Server\ThoughtWorks.CruiseControl.MsBuild.dll 3600

Deepak A