File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
setup-powershellget/Setup Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 115
115
<NuGetCommand >$(MSBuildProjectDirectory)\src\.nuget\NuGet.exe</NuGetCommand >
116
116
<NuGetRestoreConfigFile >$(MSBuildProjectDirectory)\restore.config</NuGetRestoreConfigFile >
117
117
<NuGetRestoreConfigSwitch >-ConfigFile " $(NuGetRestoreConfigFile)" </NuGetRestoreConfigSwitch >
118
+ <PowerShellCommand >C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellCommand >
118
119
</PropertyGroup >
119
120
120
121
<!--
285
286
<!-- If we are testing locally then we copy the binaries and do not submit to the code sign server-->
286
287
<Copy SourceFiles =" @(InstallersToSign)" DestinationFolder =" signed" Condition =" $(DelaySign)" />
287
288
</Target >
289
+
290
+ <!-- Publish all packages -->
291
+ <Target Name =" Publish" DependsOnTargets =" Build" >
292
+ <Error Condition =" '$(NuGetKey)' == '' " Text =" You must provide the NuGetKey parameter to the build: /p:NuGetKey=YOUR_PUBLISHING_KEY" />
293
+ <Message Importance =" high" Text =" Publishing Cmdlets..." />
294
+
295
+ <Exec Command =" $(PowerShellCommand) -NoLogo -NoProfile -Command " . $(LibraryToolsFolder)\PublishModules.ps1 $(Configuration) $(NuGetKey) \" $(LibrarySourceFolder)\Package\$(Configuration)\"" " />
296
+ </Target >
288
297
289
298
<PropertyGroup >
290
299
<RunTestLive Condition =" '$(RunTestLive)' == ''" >false</RunTestLive >
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ This may take some time...
28
28
"@
29
29
Get-PackageProvider - Name NuGet - ForceBootstrap
30
30
Install-Module AzureRM.Installer
31
- Install-AzureRM
32
31
} else {
33
32
cd c:\
34
33
$welcomeMessage = @"
Original file line number Diff line number Diff line change @@ -34,15 +34,6 @@ if ([string]::IsNullOrEmpty($repositoryLocation))
34
34
}
35
35
36
36
$packageFolder = " $PSScriptRoot \..\src\Package"
37
- $scriptFolder = Split-Path - Path $MyInvocation.MyCommand.Definition - Parent
38
- . ($scriptFolder + ' .\SetupEnv.ps1' )
39
-
40
- if (Test-Path $packageFolder ) {
41
- Remove-Item - Path $packageFolder - Recurse - Force
42
- }
43
-
44
- # Build the cmdlets in debug mode
45
- msbuild " $env: AzurePSRoot \build.proj" / t:" BuildDebug"
46
37
47
38
$repoName = $ (New-Guid ).ToString()
48
39
Register-PSRepository - Name $repoName - SourceLocation $repositoryLocation - PublishLocation $repositoryLocation - InstallationPolicy Trusted
You can’t perform that action at this time.
0 commit comments