I'm rewriting our NAnt build scripts to make them cleaner and simpler, as well as more general purpose.
One of the steps in our build process is to package certain files into a zip file. Before we had created a fileset with lots of included file types, trying to catch everything that might be in the project. This occasionally caused...
Hi everyone,
for quite a while now, I've been trying to figure out how to setup an automated build process at our shop. I've read many posts and guides on this matter and none of them really fits my specifics needs.
My SVN repository is laid out as follows
\projects
\projectA (a product)
\tags
\1.0.0.1
\...
Given the following xml:
<rootnode>
<childnode arg="a">Content A</childnode>
<childnode arg="b">Content A</childnode>
</rootnode>
Using XMLPoke with the following XPath:
rootnode/childnode[arg='b']
The result (if the replace string is empty) is:
<rootnode>
<childnode arg="a">Content A</childnode>
<childnode arg="b"></c...
I have been working to automate some deployment processes using just Nant for the time being. Once the Nant script scripts are fairly stable and proven, I'll be looking to incorporate CruiseControl.net or similar product.
With that being said, I ran into a snag today.
I have a Nant script that will copy files from a network share th...
I am using Flex and I am tired of having to manually place files in the right folders whenever I want to do a publish. I'd like to do a publish when the build suceeds.
Is there a quick way, using Nant (not my current build tool of choice), to automate this? I have a virtual directory on my PC which is my hosting directory.
Thanks
...
Hi,
I have NAnt script which as part of its project calls a batch file using the following task:
<target name="makeplane">
<exec program="C:\WINDOWS\system32\CMD.EXE"
commandline="/C ${make.file} > ${make.log}"
verbose="false"
workingdir="${make.dir}"
basedir="${make.dir}">
</...
First, the prior situation: We have this project with a one-click build script. It's cobbled together with TFS Deployer + PowerShell + VB Script. TFS Deployer sits on the production machine, copies the new website files into a brand new directory, and then calls a VB Script that changes the IIS website to the new directory.
Now, I'm ...
Hi, is it possible to manage IIS web applications with NAnt?
For example stop or start it?
...
I'm new to NAnt and have been able to create a which
1) Deletes any code from the current folder
2) Exports fresh code from SVN
3) Builds the code in the default directory which is the PrecompiledWeb folder (its a web app)
Here it is:
<target name="export" description="export code from svn">
<delete dir="${Delete.Dir}"></delete>
...
Summary:
How do I expand a property with value "download\${bulidmode}\project\setup.msi" to "download\Debug\project\setup.msi" if the property buildmode contained debug so I can use it as the file="" part of < copy >
Detail:
I have a bit of a requirement to be able to expand properties within a string in nant.
For example I have a ta...
I have a .NET project that's always been built/run by/on 32 bit machines. I got a new a 64 bit computer and am trying to tackle the task of getting it working there. The build script is in nant, and at one point we compile some boo code using the nant task. The boo code references our core DLL, which is built from c# source earlier in t...
I work in a team of 2 developers and currently we use VSS and have no continuous integration or daily build and few Unit tests.
I'm looking to change our source control to Subversion and at the same time get up and running with a more professional process.
Subversion/cruise control/nant/nunit appears quite a popular combination from wh...
I noticed that projects that were originally created in VS 2008 do not compile using the nantcontrib msbuild task. There is a solution that I've seen here but it seems like a bit of a hack, considering 'MSBuildBinPath' has been depricated, and I don't exactly like the idea of changing this property on every single project file that I cre...
Can we use nant to build .sln files in C#?
...
How can I call a batch file inside a nant script??? (Maybe having a target that calls the batch file).
...
I'm using TeamCity to manage one of my projects however it doesn't seem to be working well with Nant on Windows Server 2008. What can I do to fix this?
BEFORE Installing the ASP.NET 2.0 Framework SDK:
[10:21:07]: BUILD FAILED
[10:21:07]: Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target framework.
[10:21:07]: ...
We have an ASP.NET application and I need to add a custom HTTP header to IIS for all the developers on the team, so I want to add a command in the NANT script that will add the HTTP Header when the build script is run. Is it even possible to do this from the command line.
I've been looking up the documentation on cscript adsutil.vbs ...
I need to reference a specific version of a signed assembly. Because it is present in GAC, compiler picks up the 'vendor' version instead of the one I provide (the GAC version number is higher, even though it's an older API). Is there some kind of extension to the basic /reference=Library.dll compiler option that allows specyfing a stron...
Hi all,
I am attempting to compile my Silverlight control project with Nant without luck. Since my project contains XAML files, I am not sure if Nant is capable of generating the .g.cs files from the XAML file to be compiled into the project. I have come across posts where people suggest using the MsBuild task. Is there a way to avoid u...
Hi all
Will any of you guys be kind and explain the framework support chart shown here: nant.sourceforge.net.
My primary interest is the meaning of the terms target and runtime in the context of nant?
Thanks in advance / derdres
...