使用 nant 和 VS2008 构建平台代码

发布于 2024-07-10 17:01:43 字数 152 浏览 5 评论 0原文

我正在使用最新的 nightly build、VS2008 prof Trial 和 .NET 3.5 以及 我收到此错误

“文件‘C:\test\Project\src\project.sln’的解决方案格式不是 支持。”

任何克服它的解决方案

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

假装不在乎 2024-07-17 17:01:44

如果您使用 Exec 方法,只需将它们链接在一起,以便您按照需要的顺序获得所有解决方案,如下所示:

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

根据您的第一条消息,听起来您正在尝试使用解决方案任务,据我所知,该解决方案任务目前仅支持 vs2005(可能是错误的)。

另一种选择是做很多开源项目所做的事情(查看 castle 项目 http://castleproject.org< /a>),其中每个项目有多个构建文件 1、一个公共文件和一个主文件,如果您愿意,它允许您控制每个项目文件的所有构建顺序和细节。

我们在我的工作地点就是这样做的。

希望有帮助。

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.

深海夜未眠 2024-07-17 17:01:43

我从您发布的内容中不知道这是否有效,但如果您尝试使用 Nant Msbuild 任务运行解决方案,您可能可以将其替换为 exec 将最新版本的 msbuild 作为可执行文件调用的任务。 例如:

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

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"/>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文