|
20 | 20 | <CommonBuildProperties>WarningLevel=0;NoWarn=1591;Out=$(Out);Configuration=$(Configuration);RunCodeAnalysis=$(RunCodeAnalysis);PackageOutputPath=$(Out)</CommonBuildProperties> |
21 | 21 | <DefaultImportance Condition=" '$(DefaultImportance)' == '' ">high</DefaultImportance> |
22 | 22 | <PS>%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe</PS> |
| 23 | + <GitInfoReportImportance>high</GitInfoReportImportance> |
23 | 24 | </PropertyGroup> |
24 | 25 |
|
25 | 26 | <ItemGroup> |
|
48 | 49 |
|
49 | 50 | <Target Name="Rebuild" DependsOnTargets="Clean;Build" /> |
50 | 51 |
|
51 | | - <Target Name="Build"> |
| 52 | + <Target Name="Build" DependsOnTargets="GitInfoReport;GetPackageVersion"> |
| 53 | + <!-- For now this is an informative version #, used to update CI --> |
| 54 | + <Message Text="Building version $(PackageVersion)" Importance="high" /> |
| 55 | + <!-- Update AppVeyor build # to match the actual one being used --> |
| 56 | + <Exec Command="appveyor UpdateBuild -Version $(PackageVersion)" |
| 57 | + Condition=" '$(APPVEYOR)' == 'true' " |
| 58 | + ConsoleToMSBuild="true" |
| 59 | + ContinueOnError="WarnAndContinue" /> |
| 60 | + |
52 | 61 | <Exec Command="rmdir $(Out) /S /Q" Condition=" Exists('$(Out)') " ContinueOnError="true" StandardOutputImportance="low" /> |
53 | 62 | <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
54 | 63 | <Message Text="Build properties: $(CommonBuildProperties)." Importance="high" /> |
|
140 | 149 | </Target> |
141 | 150 | <Import Project="src\PackageVersion.targets" /> |
142 | 151 |
|
143 | | - <Target Name="Configure" DependsOnTargets="GetPackageVersion"> |
| 152 | + <Target Name="Configure"> |
144 | 153 | <Message Importance="high" Text="*********************************************************************************************************************" /> |
145 | 154 | <Message Importance="high" Text="$([System.Environment]::CommandLine)" /> |
146 | 155 | <Message Importance="high" Text="*********************************************************************************************************************" /> |
147 | | - |
148 | | - <!-- Invoke GitVersion just like the project-level targets do --> |
149 | | - <CallTarget Targets="GitInfoReport" Condition="'$(target)' != 'Restore'" /> |
150 | | - <!-- For now this is an informative version #, used to update CI --> |
151 | | - <Message Text="Building version $(PackageVersion)" Importance="high" Condition="'$(target)' != 'Restore'" /> |
152 | | - |
153 | | - <PropertyGroup> |
154 | | - <GitInfoReportImportance>high</GitInfoReportImportance> |
155 | | - </PropertyGroup> |
156 | | - |
157 | | - <!-- Update AppVeyor build # to match the actual one being used --> |
158 | | - <Exec Command="appveyor UpdateBuild -Version $(PackageVersion)" |
159 | | - Condition=" '$(APPVEYOR)' == 'true' and '$(target)' != 'Restore'" |
160 | | - ConsoleToMSBuild="true" |
161 | | - ContinueOnError="WarnAndContinue" /> |
162 | 156 | </Target> |
163 | 157 |
|
164 | 158 | <Import Project="corebuild\corebuild.targets" /> |
|
0 commit comments