Diff of /Build/CreateNuGet.bld [000000] .. [5a4bff]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/Build/CreateNuGet.bld
@@ -0,0 +1,139 @@
+<?xml version='1.0' encoding='utf-8'?>
+<project version='7' encrypted='1'>
+	<steps type='0'>
+		<step action='Group'>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<name>Project steps</name>
+		</step>
+		<step action='Set Macro'>
+			<MacroName>BUILD_NUMBER</MacroName>
+			<MacroValue>%BUILD_NUMBER%</MacroValue>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<indent type='3'>1</indent>
+			<name>Set Macro BUILD_NUMBER</name>
+		</step>
+		<step action='Set Macro'>
+			<MacroName>ROOT</MacroName>
+			<MacroValue>%PROJDIR%\..\..</MacroValue>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<indent type='3'>1</indent>
+			<name>Set Macro ROOT</name>
+		</step>
+		<step action='Set Macro'>
+			<MacroName>FILE_VERSION</MacroName>
+			<MacroValue>%BUILD_VERSION%.%BUILD_NUMBER%</MacroValue>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<indent type='3'>1</indent>
+			<name>Set Macro FILE_VERSION</name>
+		</step>
+		<step action='Run Script'>
+			<Language>VBScript</Language>
+			<Script><![CDATA[Set macros = Application.Macros(vbldMacroTemp)
+strBuildNumber=macros("BUILD_NUMBER").Value 
+while Len(strBuildNumber) < 4 
+	strBuildNumber="0"&strBuildNumber
+wend
+Application.Macros(vbldMacroTemp).Add "BUILD_NUMBER_NORMALIZED", strBuildNumber
+]]></Script>
+			<continueonfail type='3'>1</continueonfail>
+			<failsubroutine>Standard Failure</failsubroutine>
+			<indent type='3'>1</indent>
+			<name>Set Macro BUILD_NUMBER_NORMALIZED</name>
+		</step>
+		<step action='Set Macro'>
+			<MacroName>NUGET_VERSION</MacroName>
+			<MacroValue>%BUILD_VERSION%-%BUILD_TYPE%-%BUILD_NUMBER_NORMALIZED%</MacroValue>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<indent type='3'>1</indent>
+			<name>Set Macro NUGET_VERSION</name>
+		</step>
+		<step action='Set Macro'>
+			<MacroName>IMPLEMENTATION_DIR</MacroName>
+			<MacroValue>%ROOT%\\AddOn\\Implementation\\APUnitTestFramework</MacroValue>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<indent type='3'>1</indent>
+			<name>Set Macro IMPLEMENTATION_DIR</name>
+		</step>
+		<step action='Group'>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<name>Preparation</name>
+		</step>
+		<step action='Run Program'>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<command>apaddon.cmd update-sdk</command>
+			<indent type='3'>1</indent>
+			<name>Apaddon update sdk</name>
+			<outputfrom type='3'>1</outputfrom>
+			<startin>%ROOT%</startin>
+		</step>
+		<step action='Run Program'>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<command>nuget.exe restore</command>
+			<indent type='3'>1</indent>
+			<name>nuget restore</name>
+			<outputfrom type='3'>1</outputfrom>
+			<startin>%IMPLEMENTATION_DIR%</startin>
+		</step>
+		<step action='Group'>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<name>Build</name>
+		</step>
+		<step action='Make VS 2010'>
+			<Attr type='11'>-1</Attr>
+			<FileVer type='11'>-1</FileVer>
+			<Filename>%ROOT%\AddOn\APUnitTestFramework.sln</Filename>
+			<NoBuild type='11'>-1</NoBuild>
+			<Version>%FILE_VERSION%</Version>
+			<VersionSel type='3'>2</VersionSel>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<indent type='3'>1</indent>
+			<name>Set AssemblyFileVersion</name>
+		</step>
+		<step action='Make VS 2010'>
+			<Attr type='11'>-1</Attr>
+			<Filename>%ROOT%\AddOn\APUnitTestFramework.sln</Filename>
+			<NoBuild type='11'>-1</NoBuild>
+			<ProdVer type='11'>-1</ProdVer>
+			<Version>%NUGET_VERSION%</Version>
+			<VersionSel type='3'>2</VersionSel>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<indent type='3'>1</indent>
+			<name>Set AssemblyInformationalVersion</name>
+		</step>
+		<step action='Make VS 2010'>
+			<Attr type='11'>-1</Attr>
+			<Config>%V_CONFIG%</Config>
+			<FileVer type='11'>-1</FileVer>
+			<Filename>%ROOT%\AddOn\APUnitTestFramework.sln</Filename>
+			<Force type='3'>1</Force>
+			<ProdVer type='11'>-1</ProdVer>
+			<Version>%NUGET_VERSION%</Version>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<indent type='3'>1</indent>
+			<name>Build Solution</name>
+		</step>
+		<step action='Group'>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<name>Install package to Nuget Feed</name>
+		</step>
+		<step action='Run Program'>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<command>nuget.exe pack APUnitTestFramework.nuspec -properties version=%NUGET_VERSION% -verbosity detailed</command>
+			<indent type='3'>1</indent>
+			<name>Create NuGet package</name>
+			<outputfrom type='3'>1</outputfrom>
+			<startin>%IMPLEMENTATION_DIR%</startin>
+		</step>
+		<step action='Run Program'>
+			<buildfailsteps type='11'>0</buildfailsteps>
+			<command>nuget.exe add %ROOT%\AddOn\Implementation\APUnitTestFramework\APUnitTestFramework.%NUGET_VERSION%.nupkg -source "\\servernas\NuGet"</command>
+			<indent type='3'>1</indent>
+			<name>Install NuGet package</name>
+			<outputfrom type='3'>1</outputfrom>
+			<startin>%IMPLEMENTATION_DIR%</startin>
+		</step></steps>
+	<macros>
+		<macro name='V_CONFIG'>
+			<value>Debug|Any CPU</value>
+		</macro></macros>
+</project>
\ No newline at end of file