Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 689657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:21:17+00:00 2026-05-14T02:21:17+00:00

I have created an MSBuild tasks for building my projects, but for various reasons

  • 0

I have created an MSBuild tasks for building my projects, but for various reasons I wan’t to switch to NAnt.

Is there some task that would be equivalent to MSBuild’s XmlMassUpdate in NAnt? If possible I would like to use the same xml replacement file I used with XmlMassUpdate.

(for more info about XmlMassUpdate, here’s a short usage I found on stackoverflow’s site: MSBuild example)

I tried with xmlPeek/xmlPoke tasks but couldn’t get them to iterate a tree paths in a replacement file…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:21:18+00:00Added an answer on May 14, 2026 at 2:21 am

    It turned out that I just need to adjust the code from tigris’ implementation into the one that would work for NAnt.

    The solution is a bit lengthly so it doesn’t make sense to post it here in whole, but these would be the steps…

    Tigris MsBuildTasks site has both the binaries and the source code for every task.

    Just find the implementation of XmlMassUpdate, see how it’s done, and create NAnt task class in your task library, like so:

    [TaskName("XmlMassUpdate")]
    public class XmlMassUpdate : Task
    {
        [TaskAttribute("ContentFile", Required=true)]
        public string ContentFile { get; set; }
        //...
        protected override void ExecuteTask()
        {
            // ...
        }
        //other methods
    }
    

    What’s rest is to copy your library dll to nant’s bin and you can use it… enjoy

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a task for MSBuild that is to be used by developers
I'm trying to debug the MSBuild Customtask, that I have just created, but for
I have a very odd issue, where I've created a custom MSBuild task that
I have created some ms build tasks for my VS project. Rather than having
I have created some JQuery that will expand a div 'popup' on hover and
I have a requirement for compiling large number of projects (some of them having
I'd like to create a XML file within a MSBuild task. I have a
I have created custom build tasks in my project file to run my nUnit
I'm trying to create a MSBuild script for running in TeamCity. I have a
I am a beginner with MSBuild. So far I have been able to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.