Replacing value of an attribute in xml file and compiling RRS feed

  • Question

  • Hi, I have a situation where I wonder if it's possible to automate it with MSBuild or if should pursue something different. I have a C# class library (a SharePoint solution) that contains an xml file that has an attribute that defines the scope. There are 4 different values and I'd like to change the value of this attribute 4 times and automatically compile it for all 4 different ways and have each version have a slightly different name. Actually I use makecab in a postbuild event to get the 4 differently named cab files so perhaps that's outside of MSBuild.

    Is this possible without a lot of work? What would I need to look at to replace the value in the xml file automatically? I haven't seen any good examples of this.

    Wednesday, September 17, 2008 1:57 PM


All replies