Hi, I had posted a nant.build file which will read each line in the outfile.txt.
<target name="main" description="compiles the source code">
<property name="i" value="0"/>
<foreach item="Line" in="outfile.txt" property="x" trim="Both">
<property name="i" value="${int::parse(i) + 1}"/>
<if test="${i==LineToRead}">
...
I've been working on training myself in the ways of using nAnt over the past few days, and have stumbled across an issue. During the development process, I've been using the new tools, like Entity Data Model, for database access.
When you go to try to build a library/executable that contains the Edmx product, you cannot embed the requi...
I would like to accomplish two things during my build process:
Run unit tests - I have a Test Project with my unit tests. I would like to run all of these tests on build and receive a notification if the build fails validation.
Merge web.config files - I have 3 different environments with configuration details specific to each. I wou...
We were using nant for building our project (10+Class Lib) and a Web Site which was based on the ASP.NET 2.0. Recently we are in the process of moving towards the ASP.NET 3.5. I searched in the net and found that nant doesn't support 3.5.
I am also looking in to option of migrating MSBuild.
Is the MS Build right candidate for this?
I...
I have a C# project in Visual Studio and I am trying to get it hooked up with Nant, CC.NET and some tests. Nant isn't compiling my project because it says it can't find one of my classes, called LocationData. The only thing I have for this class is a schema (LocationData.xsd and LocationData.xss). I have tried adding them under source...
Hi,
Can anyone please suggest me how we could configure the sending of mails through nant.I had even gone through the link but i was unsucessfull.
thanks and regards
maddy
...
Hi,
Can anyone suggest me with examples the way to use this command in the nant.build folder.If suppose i have an build.log file and i wann search errors or any particular pattern.
I had tried that link of nant but just unable to figuer out correctly the way we should use those ones.
Thanks and regards
Maddy
...
First of all, I have already seen this post: nant mail issues but the only answer is not satisfactory (i.e.: doesn't work for me).
I am using NAnt to get latest version of source, upgrade version of the libraries and application, build the application, build the setups... all the usual things, I bet. I would like NAnt to send an email...
Hello.
I have installed CruiseControl.NET and created project with 3 tasks on taskList in nAnt. But when I run project to process on CruiseControl.NET I see only that:
Executing Nant :BuildFile: ..\project.build Targets: compile, test, docu
And my project is processing and processing ages and does not stop. And I can not figure out if...
Sorry. I'm just bitten (or bit. Go figure with this left-to-right language :-)
I've invested a huge amount of effort studying NANT and learning how to build a command line CI environment. My goal was to solve the build issue once and for all so I'll be able to develop a few projects (web sites) and have them deployed "at the press of a ...
Hi Everyone,
I got stuck up when I tried to run the Unit Test written using mbunit from NAnt. when I tried this lines of code in NAntbuilder.
<mbunit
report-types="Html;Xml;Text"
report-filename-format="${test_results.file}"
report-output-directory="${test_results.directory}"
halt-on-failure="true"
failonerror="tru...
I'm using nant to build our product and have written a custom task to notify our helpdesk system that a new build is available.
I've used nant to build the custom task and also to copy the custom nant task assembly into the nant folder so it's loaded automatically.
Worked fine the first time I ran the build.
The second time I ran the ...
Hi,
Can anyone please help me in converting the below nant script to MsBuild Script?
http://localhost//Tupe path="${triad_web_src_code.dir}\T.csproj" />
If it is not a web solution then I need not map the solution & the msbuild could be like this :
But this is not working fo...
I am trying to publish an ASP.Net website through NAnt/MSBuild calls. MSBuild is called using the following arguments:
<arg value="SubsManager.sln" />
<arg value="/t:ResolveReferences" />
<arg value="/t:_CopyWebApplication" />
<arg value="/p:Configuration=Release" />
<arg value="/p:OutDir=..\builda\Release\Web\bin\" />
<arg value="/p:W...
Hey dudes,
my manager has asked me to setup build automation for our projects. I have decided to use CruiseControl.Net as our continuous integration server as some other team members have a little experience with it, I have none - which is why I am happy to undertake this task.
We are using Subversion as our repository and the ultimate...
I'm looking for Nant script syntax that will copy from one folder to an other all files that were modified within last 5 days.
How I can cause to to include only modified files?
Thanks
...
I'm trying to use jsmin with nant - and it just uses stdin and stdout for input and output. The nant 'exec' task allows you to redirect the output to a file, but not get the input from a file.
I have tried with a 'commandline' using '>' and '<' to direct the input and output, but nant just goes away and doesn't come back :(
I can't bel...
Hi
In my org, we are planning to go for nant for .net web applications. Source control is TFS, visual studio 2008. I would like to know how to do Builds with Nant? How to create msi and deploy the application using Nant? Is separate Build machine is required to do builds with nant? Somebody please help me out. I need step wise process....
My nant script fails when I run it under cruise-control on (Windows Server 2003), but works fine when run on the console.
nant script (relevant section):
<target name="compile" depends="init">
<echo message="Build Directory is ${build.dir}" />
<exec program="${framework::get-framework-directory(framework::get-target-framework()...
We have a number of projects that have NAnt build files that we can run from batch files. We went this direction so we can tie the builds to subversion hooks and automate running the tests. However, the output of the NAnt build is significantly different from what is generated by VS when we push F5.
We would like to be able to overrid...