|
149 | 149 | <NuGetLocalBuildTaskPackages>-PackagesDirectory $(LibraryToolsFolder)\BuildPackagesTask\packages</NuGetLocalBuildTaskPackages>
|
150 | 150 |
|
151 | 151 | <PowerShellCommand Condition=" '$(PowerShellCommand)' == '' ">C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellCommand>
|
| 152 | + <PowerShellCoreCommand Condition=" '$(PowerShellCoreCommand)' == '' ">pwsh</PowerShellCoreCommand> |
152 | 153 | </PropertyGroup>
|
153 | 154 |
|
154 | 155 | <!--
|
|
271 | 272 |
|
272 | 273 | <!-- Delete powershell runtime files -->
|
273 | 274 | <ItemGroup>
|
274 |
| - <RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.Powershell.*.dll" /> |
275 |
| - <RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\System*.dll" |
276 |
| - Exclude="$(PackageDirectory)\**\netcoreapp2.0\publish\System.Security.Cryptography.ProtectedData.dll" /> |
277 |
| - <RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.VisualBasic.dll" /> |
278 |
| - <RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.CSharp.dll" /> |
279 |
| - <RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.CodeAnalysis.dll" /> |
280 |
| - <RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.CodeAnalysis.CSharp.dll" /> |
| 275 | + <RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.Powershell.*.dll" /> |
| 276 | + <RedundantDlls Include="$(PackageDirectory)\**\publish\System*.dll" |
| 277 | + Exclude="$(PackageDirectory)\**\publish\System.Security.Cryptography.ProtectedData.dll" /> |
| 278 | + <RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.VisualBasic.dll" /> |
| 279 | + <RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.CSharp.dll" /> |
| 280 | + <RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.CodeAnalysis.dll" /> |
| 281 | + <RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.CodeAnalysis.CSharp.dll" /> |
281 | 282 | </ItemGroup>
|
282 | 283 |
|
283 | 284 | <Delete Files="@(RedundantDlls->'%(FullPath)')"/>
|
284 | 285 |
|
285 |
| - <!-- Copy content of the publish folder one folders up --> |
| 286 | + <!-- Copy content of the publish folder one folder up. --> |
286 | 287 | <ItemGroup>
|
287 |
| - <PackageContent Include="$(PackageDirectory)\**\netcoreapp2.0\publish\*.*" /> |
| 288 | + <PackageContent Include="$(PackageDirectory)\**\publish\*.*" /> |
288 | 289 | <SourceFile Include="@(PackageContent)">
|
289 | 290 | <DestinationFolder>$([System.IO.Path]::Combine('%(RelativeDir)', '..', '%(FileName)%(Extension)'))</DestinationFolder>
|
290 | 291 | </SourceFile>
|
291 | 292 | </ItemGroup>
|
292 | 293 |
|
293 | 294 | <Copy SourceFiles="@(SourceFile->'%(FullPath)')" DestinationFiles="@(SourceFile->'%(DestinationFolder)')" SkipUnchangedFiles="true"/>
|
294 | 295 |
|
295 |
| - <!-- Move PSD1 files one folders up --> |
296 |
| - <ItemGroup> |
297 |
| - <psdFiles Include="$(PackageDirectory)\**\netcoreapp2.0\*.psd1" /> |
298 |
| - <psdFilesTarget Include="@(psdFiles)"> |
299 |
| - <DestinationFolder>$([System.IO.Path]::Combine('%(RelativeDir)', '..', '%(FileName)%(Extension)'))</DestinationFolder> |
300 |
| - </psdFilesTarget> |
301 |
| - </ItemGroup> |
302 |
| - |
303 |
| - <Move SourceFiles="@(psdFilesTarget->'%(FullPath)')" DestinationFiles="@(psdFilesTarget->'%(DestinationFolder)')"/> |
304 |
| - |
305 | 296 | <!-- Delete build artifacts -->
|
306 | 297 | <ItemGroup>
|
307 |
| - <GetAllFiles Include="$(PackageDirectory)\**\netcoreapp2.0\publish\*.*" /> |
| 298 | + <GetAllFiles Include="$(PackageDirectory)\**\publish\*.*" /> |
308 | 299 | <Artifacts Include="@(GetAllFiles->'%(RootDir)%(Directory)'->Distinct())" />
|
309 | 300 | </ItemGroup>
|
310 | 301 |
|
311 | 302 | <RemoveDir Directories="%(Artifacts.Identity)" ContinueOnError="true" />
|
312 | 303 |
|
313 | 304 | <ItemGroup>
|
314 |
| - <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Resources.Netcore\AzureRM.Tags.Netcore.psd1" /> |
315 |
| - <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Websites.Netcore\AzureRM.Resources.Netcore.psd1" /> |
316 |
| - <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Websites.Netcore\AzureRM.Tags.Netcore.psd1" /> |
317 |
| - <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Network.Netcore\AzureRM.Resources.Netcore.psd1" /> |
318 |
| - <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Network.Netcore\AzureRM.Tags.Netcore.psd1" /> |
| 305 | + <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Resources.Netcore\AzureRM.Tags.Netcore.psd1" /> |
| 306 | + <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Websites.Netcore\AzureRM.Resources.Netcore.psd1" /> |
| 307 | + <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Websites.Netcore\AzureRM.Tags.Netcore.psd1" /> |
| 308 | + <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Network.Netcore\AzureRM.Resources.Netcore.psd1" /> |
| 309 | + <ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Network.Netcore\AzureRM.Tags.Netcore.psd1" /> |
319 | 310 | </ItemGroup>
|
320 | 311 |
|
321 | 312 | <Delete Files="@(ExtraPsdFiles->'%(FullPath)')"/>
|
| 313 | + |
| 314 | + <!-- Update module manifests. --> |
| 315 | + <Exec Command=""$(PowerShellCoreCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) AzureRM.Netcore -Profile Latest " " Condition="'$(Latest)' == 'true' and '$(CodeSign)' == 'false'"/> |
| 316 | + |
| 317 | + <!-- Generate the help. --> |
| 318 | + <Exec Command=""$(PowerShellCoreCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\GenerateHelp.ps1 -GenerateMamlHelp -BuildConfig $(Configuration) "" ContinueOnError="true" Condition=" '$(SkipHelp)' == 'false' and '$(Latest)' == 'true'"/> |
| 319 | + |
| 320 | + <!-- Cleanup extraneous files. --> |
| 321 | + <Exec Command=""$(PowerShellCoreCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) "" /> |
| 322 | + |
322 | 323 | <CallTarget Targets="CodeSignBinaries" Condition=" '$(CodeSign)' == 'true' " />
|
323 | 324 | </Target>
|
324 | 325 |
|
|
368 | 369 | <Output TaskParameter="Path" PropertyName="WindowsSdkPath"/>
|
369 | 370 | </GetFrameworkSdkPath>
|
370 | 371 |
|
371 |
| - |
372 | 372 | <Copy SourceFiles="$(LibraryRoot)tools\AzureRM.Netcore\AzureRM.Netcore.psd1"
|
373 | 373 | DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'true' "/>
|
374 | 374 |
|
|
0 commit comments