Cool,
thanks. I am setting the version #'s to "" globally to start with.
Then, I call an exe using the <exec> task. That outputs the new
version # to a txt file. Using a <foreach>, I set the
properties. Here is the code. Let me know what you think. I am
basing this off an example that Jarek provided. I hope I am doing
things right.
<property name="version.major" value=""
/>
<property name="version.minor" value="" /> <property name="version.revision" value="" /> <property name="version.build" value="" /> .
.
.
<target name="label">
<exec program="${versioning.prog}" commandline="AssemblyInfo.cs" output="${version.file}" /> <foreach item="Line" in="${version.file}" delim="." property="major.temp,minor.temp,revision.temp,build.temp"> <property name="version.major" value="${major.temp}" /> <property name="version.minor" value="${minor.temp}" /> <property name="version.revision" value="${revision.temp}" /> <property name="version.release" value="${build.temp}" /> </foreach> .
.
.
Label
VSS files
for the <vssget>
</target> Anyone
see any problems?
Thanks, Evan A. Bonnett
|
Title: Message
- RE: [Nant-users] Getting Code from VSS via NAnt Morris, Jason
- RE: [Nant-users] Getting Code from VSS via NAnt Price, Henry
- RE: [Nant-users] Getting Code from VSS via NAnt Bonnett, Evan A
- RE: [Nant-users] Getting Code from VSS via NAnt Bonnett, Evan A
- RE: [Nant-users] Getting Code from VSS via NAnt Bonnett, Evan A
- RE: [Nant-users] Getting Code from VSS via NAnt Morris, Jason
- RE: [Nant-users] Getting Code from VSS via NAnt Bonnett, Evan A
- Re: [Nant-users] Getting Code from VSS via NAnt Jaroslaw Kowalski
- RE: [Nant-users] Getting Code from VSS via NAnt Bonnett, Evan A
- RE: [Nant-users] Getting Code from VSS via NAnt Noel Gifford
- RE: [Nant-users] Getting Code from VSS via NAnt Bonnett, Evan A
- RE: [Nant-users] Getting Code from VSS via NAnt Bonnett, Evan A