Going from to in NAnt

后端 未结 3 660
慢半拍i
慢半拍i 2021-01-07 06:49

I\'ve converted my app from .NET 1.1 to .NET 3.5 and unfortunately NAnt\'s tag does not support .NET 3.5. So I am trying to use the tag to kick off msbuild directly.

3条回答
  •  走了就别回头了
    2021-01-07 07:15

    I have doing configuration management with Nant and CC.Net for a while now. I my experience I would not recommed using the Nant MSBuild task, instead the easiest way is creating and task, create a .bat file that the task executes. There are several reasons that would recommend using the command line Visual Studio, for one MSI packages are not easily build with Nant, even if you use contrib. Its just way easier and a lot faster this way.

    ---------2.0 ------------- "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv" C:\YourProject\YourSoultion.sln /Rebuild release

    ----------3.5-------------- "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv" C:\YourProject\YourSoultion.sln /Rebuild release

提交回复
热议问题