nant

Saving a Linq to Xml file as ANSI instead of UTF-8 in C# (Ivy)

点点圈 提交于 2019-12-01 07:33:43
In C#, I need to create XML files for use with Ivy and NAnt, but am having difficulty in getting the right encoding in the output file. If I use XElement's .Save("C:\foo.xml"), I get the correct looking file, but Ivy and/or NAnt gets upset, as the file is actually saved using UTF-8 but I actually need to save it as ANSI in order to be able to use it. I have a bodge in place at present, which is to use .ToString() to get the text and then use a StreamWriter to write it to a file. Ideally, I'd like to set the format during the .Save() but can't find any information on this. Thanks. XDocument

Saving a Linq to Xml file as ANSI instead of UTF-8 in C# (Ivy)

半城伤御伤魂 提交于 2019-12-01 04:20:21
问题 In C#, I need to create XML files for use with Ivy and NAnt, but am having difficulty in getting the right encoding in the output file. If I use XElement's .Save("C:\foo.xml"), I get the correct looking file, but Ivy and/or NAnt gets upset, as the file is actually saved using UTF-8 but I actually need to save it as ANSI in order to be able to use it. I have a bodge in place at present, which is to use .ToString() to get the text and then use a StreamWriter to write it to a file. Ideally, I'd

Sample Request: <msi> task of nant-contrib

痴心易碎 提交于 2019-12-01 01:01:24
Can anyone please provide me a sample build file demostrating the use of the task of nant-contrib for creating an installer of a web application project. Damien Carol This one :) <?xml version="1.0"?> <project name="Scanner" xmlns="http://nant.sf.net/release/0.85/nant.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nant.sf.net/release/0.85/nant.xsd http://ilqhfaatc1ws628/nant.xsd"> <!-- Nant command line: c:\nant\nant -debug+ /f:"D:\LaptopServiceTools\ShortFilenameFailure.build.xml" -v+ create.msi --> <target name="create.msi"> <setenv> <!--Set path to

Sample Request: <msi> task of nant-contrib

那年仲夏 提交于 2019-11-30 19:52:53
问题 Can anyone please provide me a sample build file demostrating the use of the task of nant-contrib for creating an installer of a web application project. 回答1: This one :) <?xml version="1.0"?> <project name="Scanner" xmlns="http://nant.sf.net/release/0.85/nant.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nant.sf.net/release/0.85/nant.xsd http://ilqhfaatc1ws628/nant.xsd"> <!-- Nant command line: c:\nant\nant -debug+ /f:"D:\LaptopServiceTools

NAnt and VS2008 (.NET 3.5) - Solution format of file Solution.sln is not supported

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 18:47:28
I'm trying to get NAnt 0.86b1 running with VS2008 SP1 and x64 XP. I have a basic build file (below) which gives the error Solution format of file 'Solution.sln' is not supported. <property name="nant.settings.currentframework" value="net-3.5" /> <target name="build" description="Full Rebuild" depends="clean,compile" /> <target name="clean" description="Cleans outputs"> <delete dir="bin" failonerror="false" /> <delete dir="obj" failonerror="false" /> </target> <target name="compile" description="Compiles solution"> <solution configuration="debug" solutionfile="Solution.sln" /> </target> Has

MSDeploy all configuration [.config files] in one package

不想你离开。 提交于 2019-11-30 14:56:46
We have 4 different environments at the moment (Lab, Test, Stage, LIVE) and we have implemented automatic deployment using Nant/CC.Net. I am investigating and doing some research as to what can be done more efficiently with new MSDeploy tool. What I want to achieve is to create a package with a Configuration folder inside which we will have all the different configuration files for all the possible environments (basically adding all config transform files) What I want to achieve is automatic deployment in our enterprise environment where development team hasn't got any access to the server

Is it possible to build a sitecore data package from command line, or outside of a web context? i.e. using nant

亡梦爱人 提交于 2019-11-30 05:03:06
The Sitecore package wizard can be used to build a package containing data and files for the local Sitecore instance. Is it possible to build a Sitecore package (items only, files are not required) from the command line, or otherwise outside the context of a website? The idea is to use Nant to create a Sitecore data package. I'm aware of Hedgehog TDS, but this question is aimed at what can be done with the existing Sitecore api. You should take a look at the Sitecore.Install.PackageGenerator class in the Sitecore.Kernel to see how you may go about creating traditional Sitecore packages.

NAnt and VS2008 (.NET 3.5) - Solution format of file Solution.sln is not supported

99封情书 提交于 2019-11-30 03:13:52
问题 I'm trying to get NAnt 0.86b1 running with VS2008 SP1 and x64 XP. I have a basic build file (below) which gives the error Solution format of file 'Solution.sln' is not supported. <property name="nant.settings.currentframework" value="net-3.5" /> <target name="build" description="Full Rebuild" depends="clean,compile" /> <target name="clean" description="Cleans outputs"> <delete dir="bin" failonerror="false" /> <delete dir="obj" failonerror="false" /> </target> <target name="compile"

Advantages of using MSBuild or NAnt versus running DevEnv.exe from command-line

余生长醉 提交于 2019-11-30 01:47:56
Can anyone explain what advantages there are to using a tool like MSBuild (or NAnt) to build a collection of projects versus running DevEnv.exe from the command-line? A colleague I had worked with in the past had explained that (at least with older versions of Visual Studio) using DevEnv.exe was much slower than the other techniques, but I haven't read any evidence of that or if that is now a moot point now that starting with 2005, Visual Studio uses MSBuild under the hood. I know one advantage of using MSBuild allows you to build your projects without requiring Visual Studio to be installed