1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 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> |