Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2007, 08:43 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I appears that the BuildPublisher task doesn't have any way of filtering the files that are copied. You may be better off to do this with a small NAnt script with the copy task that allows comprehensive specification of the files to include or exclude from the copy.

-Peter
 
Old September 13th, 2007, 04:39 AM
Authorized User
 
Join Date: Mar 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can u give me an example or a link regarding filtering of files using NAnt.

The next I want to ask u is about .build file used in CC.Net.
Can u put some light on it.
Means why are they required and so.

 
Old September 13th, 2007, 09:24 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The Nant copy task uses the FileSet type. That type supports name pattern matching.

You need a build file (you can use any extension, but .build is the default) for a call to Nant from CCNet. Otherwise Nant won't have anything to do and will return an error that it can't find a build file. If you aren't calling nant (using the Nant build task) in CCNet then you don't need a build file.

-Peter
 
Old September 13th, 2007, 11:31 AM
Authorized User
 
Join Date: Mar 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thankyou sir I will look into the links.

One major problem is there when I use cc.net is that I am getting success
when I use MSBuild but always get Failure(Status) when I use Nant.
(Under same conditions)

I really not understand what's going wrong. My Nant block is as follows:
Pls tell what exactly should be there in <buildArgs>.
Why we need this element.

       <nant>
        <executable>C:\Documents and Settings\spatil\Desktop\Nant\nant-0.85-bin\bin\NAnt.exe</executable>
        <baseDirectory>.</baseDirectory>

        <buildArgs></buildArgs>
        <nologo>false</nologo>
        <buildFile>NewLogin.build</buildFile>
        <logger>NAnt.Core.XmlLogger</logger>
        <targetList>
          <target>clean build test</target>
        </targetList>
        <buildTimeoutSeconds>1200</buildTimeoutSeconds>
      </nant>


I am getting error as
Microsoft Visual Studio.NET 2005 solutions are not supported.
in the Build Report

In ViewBuildlog I am getting result as follows

<cruisecontrol project="NewLogin">
  <request source="intervalTrigger" buildCondition="ForceBuild">intervalTrigger triggered a build (ForceBuild)</request>
  <modifications />
  <build date="9/13/2007 9:54:41 PM" buildtime="00:00:05" error="true" buildcondition="ForceBuild">NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net


<buildresults project="NewLogin"><message level="Info"><![CDATA[Buildfile: file:///C:/Program Files/CruiseControl.NET/server/NewLogin/WorkingDirectory/NewLogin.build]]></message><message level="Info"><![CDATA[Target framework: Microsoft .NET Framework 2.0]]></message><message level="Info"><![CDATA[Target(s) specified: clean build test]]></message><task name="property"><duration>0</duration></task><target name="clean"><task name="delete"><duration>15.6071</duration></task><duration>31.2142</duration></target><target name="build"><task name="call"><target name="build.NewLogin"><task name="solution"><message level="Info"><![CDATA[Starting solution build.]]></message><task name="delete"><duration>15.6071</duration></task><duration>78.0355</duration></task><duration>93.6426</duration></target><duration>93.6426</duration></task><duration>93.6426</duration></target><failure><builderror><type>NAnt.Core.BuildE xception</type><message><![CDATA[Microsoft Visual Studio.NET 2005 solutions are not supported.]]></message><stacktrace><![CDATA[ at NAnt.VSNet.SolutionFactory.LoadSolution(SolutionTa sk solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver)
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
   at NAnt.Core.Tasks.CallTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()]]></stacktrace></builderror></failure><duration>156.071</duration></buildresults>
</build>
</cruisecontrol>

Thanking you in anticipation.
Regards Rupesh,


 
Old September 13th, 2007, 08:19 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I don't see anything wrong with your build args. (Side note, you don't need to use that CCNet property assignment, cruise control already adds several properties for CCNet values to the nant call. You can use one of those to test that a call is coming from CCNet versus a manual call.)

Can you think of a reason why Nant would think that VS solution calls aren't supported? It is obviously choking an the task of calling visual studio. What environment are you running this on? Is visual studio installed on it?

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse XML doc using VB.NET into ASP.NET page kwilliams Classic ASP XML 17 November 11th, 2005 10:42 AM
Database diagram in .net using asp.net,c#.net scotttiger ADO.NET 2 February 16th, 2005 01:35 AM
Questions regaring PHP Coding phpcoder1 PHP How-To 0 November 4th, 2004 05:02 PM
Questions regaring PHP Coding phpcoder1 Beginning PHP 1 September 11th, 2004 08:07 PM
CR.net With ASP.net using C#.net Nilesh Leuva Crystal Reports 1 September 11th, 2003 12:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.