|
71 | 71 |
|
72 | 72 | <StaticAnalysis Include=".\tools\StaticAnalysis\StaticAnalysis.sln" /> |
73 | 73 | <LocalBuildTasks Include="$(LibraryToolsFolder)\BuildPackagesTask\Microsoft.Azure.Build.Tasks.sln" /> |
| 74 | + <LocalBuildTasks Include="$(LibraryToolsFolder)\RepoTasks\RepoTasks.sln" /> |
74 | 75 | </ItemGroup> |
75 | 76 |
|
76 | 77 | <!-- Tasks --> |
|
148 | 149 | <NuGetRestoreConfigSwitch>-ConfigFile "$(NuGetRestoreConfigFile)"</NuGetRestoreConfigSwitch> |
149 | 150 | <NuGetRestorePackageSetting>-PackagesDirectory $(LibraryNugetPackageFolder)</NuGetRestorePackageSetting> |
150 | 151 | <NuGetLocalBuildTaskPackages>-PackagesDirectory $(LibraryToolsFolder)\BuildPackagesTask\packages</NuGetLocalBuildTaskPackages> |
| 152 | + <NuGetRepoTasksPackages>-PackagesDirectory $(LibraryToolsFolder)\RepoTasks\packages</NuGetRepoTasksPackages> |
151 | 153 |
|
152 | 154 | <PowerShellCommand Condition=" '$(PowerShellCommand)' == '' ">C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellCommand> |
153 | 155 | <PowerShellCoreCommand Condition=" '$(PowerShellCoreCommand)' == '' ">pwsh</PowerShellCoreCommand> |
|
182 | 184 | <!-- Restore packages for local build tasks--> |
183 | 185 | <Exec Command="$(NuGetCommand) restore %(LocalBuildTasks.FullPath) $(NuGetRestoreConfigSwitch) $(NuGetLocalBuildTaskPackages)" |
184 | 186 | ContinueOnError="false" /> |
| 187 | + <!-- Restore packages for repo tasks tasks--> |
| 188 | + <Exec Command="$(NuGetCommand) restore %(LocalBuildTasks.FullPath) $(NuGetRestoreConfigSwitch) $(NuGetRepoTasksPackages)" |
| 189 | + ContinueOnError="false" /> |
| 190 | + <Exec Command="$(NuGetCommand) restore %(SetupSln.FullPath) $(NuGetRestoreConfigSwitch) $(NuGetRestorePackageSetting)" |
| 191 | + ContinueOnError="false" /> |
185 | 192 |
|
186 | 193 | <!--Restore the xunit runner needed to run unit tests--> |
187 | 194 | <Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\packages.config -PackagesDirectory $(MSBuildProjectDirectory)\packages" /> |
|
194 | 201 | <Message Importance="high" Text="Building Cmdlets..." /> |
195 | 202 |
|
196 | 203 | <MakeDir Directories="$(PackageDirectory)" /> |
197 | | - <Exec ContinueOnError="false" |
198 | | - Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command " . $(LibraryToolsFolder)\CreateMappings.ps1 -RootPath $(LibrarySourceFolder) -OutputFile $(PackageDirectory)\groupMapping.json -WarningFile $(PackageDirectory)\groupMappingWarnings.json -RulesFile $(LibraryToolsFolder)\CreateMappings_rules.json "" Condition="'$(Latest)' == 'true'"/> |
199 | 204 |
|
200 | 205 | <MSBuild |
201 | 206 | Projects="@(CmdletSolutionsToBuild)" |
|
211 | 216 |
|
212 | 217 | <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Latest " " Condition="'$(Latest)' == 'true' and '$(CodeSign)' == 'false'"/> |
213 | 218 | <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Stack " " Condition="'$(Stack)' == 'true' and '$(CodeSign)' == 'false'"/> |
| 219 | + |
| 220 | + <Exec ContinueOnError="false" |
| 221 | + Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command " . $(LibraryToolsFolder)\NewHelpIndex.ps1 -OutputFile $(PackageDirectory)\index.json -BuildConfig $(Configuration) "" Condition="'$(Latest)' == 'true'"/> |
| 222 | + |
214 | 223 | <!-- Copying shortcut to be signed --> |
215 | 224 | <Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psd1" |
216 | 225 | DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Latest)' == 'true'"/> |
|
245 | 254 |
|
246 | 255 | <Message Importance="high" Text="Running Static Analyser" /> |
247 | 256 | <CallTarget targets="DependencyAnalysis" ContinueOnError="ErrorAndContinue" /> |
| 257 | + <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\CheckAssemblies.ps1 -BuildConfig $(Configuration) "" /> |
248 | 258 | <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) "" /> |
249 | 259 | </Target> |
250 | 260 |
|
|
0 commit comments