Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a88a0f6e2c
Fetching contributors…

Cannot retrieve contributors at this time

81 lines (66 sloc) 1.952 kb
<project>
<target name="updateVersion">
<loadfile
file="${VersionInfoFile}"
property="VersionInfo"
/>
<regex input="${VersionInfo}"
pattern="AssemblyVersion(Attribute)?\D+(?'RootVersion'(\d+\.){2}\d+)"
/>
<property
name="FileVersion"
value="${RootVersion}.${build.number}"
/>
<echo message="##teamcity[buildNumber '${FileVersion}']" />
<asminfo output="${VersionInfoFile}" language="CSharp">
<imports>
<import namespace="System" />
<import namespace="System.Reflection" />
</imports>
<attributes>
<attribute type="AssemblyVersionAttribute" value="${FileVersion}" />
<attribute type="AssemblyFileVersionAttribute" value="${FileVersion}" />
</attributes>
</asminfo>
</target>
<target name="package">
<mkdir dir="_zip" />
<zip zipfile="_zip/${Product}.NET.${build.number}.bin.zip">
<fileset basedir="_build">
<include name="${Product}.dll" />
</fileset>
</zip>
<zip zipfile="_zip/${Product}.WP7.${build.number}.bin.zip">
<fileset basedir="_build">
<include name="*WP7.dll" />
</fileset>
</zip>
<zip zipfile="_zip/${Product}.MT.${build.number}.bin.zip">
<fileset basedir="_build">
<include name="*MT.dll" />
</fileset>
</zip>
<zip zipfile="_zip/${Product}.M4A.${build.number}.bin.zip">
<fileset basedir="_build">
<include name="*.M4A.dll" />
</fileset>
</zip>
<zip zipfile="_zip/${Product}.${build.number}.src.zip">
<fileset>
<include name="**/*" />
<exclude name="_*/**" />
<exclude name="*.build" />
<exclude name="*.nuspec" />
<exclude name="*.tmp" />
<exclude name="*.gitignore" />
</fileset>
</zip>
</target>
<target name="publishToSite">
<copy todir="${PublishPath}" flatten="true">
<fileset basedir="_zip">
<include name="*.zip"/>
</fileset>
</copy>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.