I need to pass changeset number from ccnet to msbuild script in build process.
When ccnet triggering new build,he get a changeset number, so
I need to take that changeset number and pass it to the msbuild script.
This msbuild script involves some custom tool, which need this changeset number.
Thanks.
You can create a property for the changeset number like this:
<PropertyGroup>
<ChangesetNumber>SomeDefaultValue</ChangesetNumber>
</PropertyGroup>
and pass it through the commandline to your msbuild like this:
msbuild yourprojectname /p:ChangesetNumber=yourValue
In your projectfile you would then reference this:
<Target Name="YourCustomTarget">
<YourCustomTask argumentForChangesetNumber="$(ChangesetNumber)" />
</Target>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.