代码拉取完成,页面将自动刷新
<?xml version="1.0" ?>
<project name="SuperSocket" default="makeRelease" xmlns="http://nant.sf.net/schemas/nant.xsd">
<property name="build.dir" value="${project::get-base-directory()}" />
<property name="releaseVersion" overwrite="false" value=""></property>
<property name="push" overwrite="false" value=""></property>
<target name="zipSourceCode" description="zip the source code">
<zip zipfile="SuperSocket${releaseVersionTag}.Source.zip">
<fileset basedir=".">
<include name="**/*" />
<exclude name="**/bin/**" />
<exclude name="**/obj/**" />
<exclude name="**/.git/**" />
<exclude name="**/*.user" />
<exclude name="**/*.suo" />
<exclude name="**/.gitignore" />
<exclude name="**/nuget.key" />
<exclude name="*Push.bat" />
<exclude name="*SuperSocket.build" />
<exclude name="**/*.nuspec" />
<exclude name="**/*.userprefs" />
<exclude name=".travis.yml" />
<exclude name="**/.vs/**" />
</fileset>
</zip>
</target>
<target name="cleanObjDir" description="clear the obj dir">
<delete>
<fileset>
<include name="**/obj/**"/>
</fileset>
</delete>
</target>
<target name="zipBinaries" description="zip the binary output">
<zip zipfile="SuperSocket${releaseVersionTag}.Binaries.zip">
<fileset basedir="bin">
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="buildSln" description="build the solution">
<msbuild project="${solutionFile}" verbose="true">
<arg value="/t:Clean;Build" />
<arg value="/p:OutputPath=${build.dir}\bin\${netFxVersion}\${configuration}" />
</msbuild>
</target>
<target name="buildPrj" description="build the project">
<msbuild project="${solutionFile}" verbose="true">
<arg value="/t:Clean;Build" />
<arg value="/p:OutputPath=${build.dir}\bin\${netFxVersion}\${configuration}" />
</msbuild>
</target>
<target name="nugetPack" description="pack the nuget package">
<loadfile file="nuget.key" property="nuget.key" />
<exec program="nuget" failonerror="true">
<arg line="SetApiKey ${nuget.key}" />
</exec>
<exec program="nuget" failonerror="true">
<arg line="Pack SuperSocket.nuspec -Properties Configuration=Release;version=${releaseVersion}" />
</exec>
<exec program="nuget" failonerror="true">
<arg line="Pack SuperSocket.Engine.nuspec -Properties Configuration=Release;version=${releaseVersion}" />
</exec>
<exec program="nuget" failonerror="true">
<arg line="Pack SuperSocket.WebSocket.nuspec -Properties Configuration=Release;version=${releaseVersion}" />
</exec>
<if test="${push=='true'}">
<exec program="nuget" failonerror="true">
<arg line="Push SuperSocket.${releaseVersion}.nupkg" />
</exec>
<exec program="nuget" failonerror="true">
<arg line="Push SuperSocket.Engine.${releaseVersion}.nupkg" />
</exec>
</if>
</target>
<target name="nugetPackVersion" description="pack the nuget package">
<mkdir dir="nuget\lib\${netFxVersion}" />
<copy todir="nuget\lib\${netFxVersion}">
<fileset basedir="bin\${netFxVersion}\Release">
<include name="*.dll" />
<include name="*.xml" />
<include name="*.exe" />
</fileset>
</copy>
</target>
<target name="makeRelease" description="make the release package">
<property name="releaseVersionTag" value=""/>
<if test="${string::get-length(releaseVersion) > 0}">
<property name="releaseVersionTag" value="(${releaseVersion})"/>
</if>
<call target="zipSourceCode" />
<property name="netFxVersion" value="net35" />
<property name="configuration" value="Debug" />
<property name="solutionFile" value="SuperSocket.2010.NET35.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net35.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="net35" />
<property name="configuration" value="Release" />
<property name="solutionFile" value="SuperSocket.2010.NET35.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net35.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="net40" />
<property name="configuration" value="Debug" />
<property name="solutionFile" value="SuperSocket.2010.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net40.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="net40" />
<property name="configuration" value="Release" />
<property name="solutionFile" value="SuperSocket.2010.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net40.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="net45" />
<property name="configuration" value="Debug" />
<property name="solutionFile" value="SuperSocket.2013.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net45.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="net45" />
<property name="configuration" value="Release" />
<property name="solutionFile" value="SuperSocket.2013.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net45.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<call target="zipBinaries" />
<call target="nugetPack" />
</target>
</project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。