Building the platform code with nant and VS2008

主宰稳场 提交于 2019-12-22 14:54:16

问题


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


回答1:


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"/>



回答2:


NAnt and VS2008 (.NET 3.5) - Solution format of file Solution.sln is not supported

perhaps this?

http://codebetter.com/blogs/jeffrey.palermo/archive/2007/11/28/upgrade-nant-for-use-with-vs2008-solutions-and-net-3-5.aspx




回答3:


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.



来源:https://stackoverflow.com/questions/426199/building-the-platform-code-with-nant-and-vs2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!