views:

884

answers:

5

I'm using the latest nightly build, VS2008 prof trial and .NET 3.5 and I'm getting this error

"Solution format of file 'C:\test\Project\src\project.sln' is not supported."

Any Solution to overcome from it

+2  A: 

I don't know from what you posted if this will work, but if you're trying to run the solution using a the Nant Msbuild task, you might be able to get away with substituting that for a an exec task that calls the most recent version of msbuild as an executable. For example:

<exec program="msbuild.exe" 
      basedir="C:\windows\microsoft.net\Framework\v3.5\" 
      commandline="C:\test\Project\src\project.sln"/>
Dan Monego
A: 

Thanks Guys ! let me see it if this works for me, as explaning more what exectly i am trying to do here to build and hourly build with CruiseControl, Msbuild, nant 0.86 beta 1 and making SVN checkout on latest code versions on my build server.

Appericiated N@

NaV
A: 

Dan, how if you have more then one solution files! means if you're trying to run the multiple solutions using a the Nant Msbuild task.

NaV
A: 

If you are using the Exec approach just chain them together so that you get all your solutions in the order you need like so:

<exec program="msbuild.exe"       basedir="C:\windows\microsoft.net\Framework\v3.5\"       commandline="C:\test\Project\src\project1.sln"/>

On a side note based on your first message it sounds like you were trying to use the solution task which currently only supports up to vs2005 as far as I'm aware (could be wrong).

The other alternative is to do something like what a lot of open source projects do (check out the castle project http://castleproject.org) where you have multiple build files 1 per project, a common file, and a master file which allows you to control all the build orders and specifics around each and every project file if you wanted to.

This is how we do it at my place of work.

Hope that helps.

Joshua Cauble