Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
add2821
First commit
nityasharma Sep 8, 2015
6a51d54
merge
nityasharma Sep 18, 2015
b2a0601
Merged changes
nityasharma Sep 18, 2015
260443f
Authorization: Bug fix in Get-AzureRMRoleAassignment to filter list o…
namratab Sep 21, 2015
0914abd
[#102955616, #103828190] Add output types for profile cmdlets and fix…
markcowl Sep 22, 2015
2032a22
Batch update cmdlets
Sep 4, 2015
dba36ec
Tests for Batch Update cmdlets
Sep 8, 2015
1ac0309
Help for Batch update cmdlets
Sep 8, 2015
03b34fd
Fix session records for Batch update tests
Sep 8, 2015
6950060
Rename Batch interceptor helper methods
Sep 10, 2015
ad1cf6f
Merge dev branch changes into Batch update cmdlets
Sep 22, 2015
d045e2c
Graph call optimization and parameter fixes
shuagarw Sep 22, 2015
6caf154
Merge branch 'dev' of github.com:Azure/azure-powershell into paramete…
shuagarw Sep 22, 2015
48f048b
reverting unintended help file parameter renaming
markcowl Sep 22, 2015
1f17434
RoleAssignment fixes
shuagarw Sep 23, 2015
83664bd
Merge branch 'dev' of github.com:Azure/azure-powershell into paramete…
shuagarw Sep 23, 2015
f7497c8
Fix a bunch of typos.
rhencke Sep 23, 2015
ac06ca4
skip failing tests
namratab Sep 23, 2015
843d985
Merge branch 'dev' of github.com:Azure/azure-powershell into DocUpdate
namratab Sep 23, 2015
0270be6
Merge pull request #947 from namratab/DocUpdate
markcowl Sep 23, 2015
207a0f7
Merge branch 'dev' of github.com:Azure/azure-powershell into paramete…
shuagarw Sep 23, 2015
f69f6df
[fixes #103934158] Fix storage data plane renamings
jianghaolu Sep 23, 2015
b2adc4f
Merging with upstream changes
markcowl Sep 23, 2015
a3ca5dc
Moving model classes and updating scenario tests
markcowl Sep 23, 2015
48ccf0b
Merge pull request #960 from jasper-schneider/batchUpdateCmdlets
ogail Sep 23, 2015
6ab0000
Fix Tests
Sep 23, 2015
13a8f10
Role Assignment fixes review comments
shuagarw Sep 23, 2015
1ae79b0
Fixing output for profile types
markcowl Sep 23, 2015
2444a52
Updated parallel scripts
stankovski Sep 23, 2015
496f794
Fix reference of storage data plane in ApiManagement
jianghaolu Sep 23, 2015
81bab9e
[fixes #103937270] Add -SubscriptionName to Get-AzureRMSubscription
jianghaolu Sep 23, 2015
443c1f9
Clean up ARM EnvironmentSetupHelper
jianghaolu Sep 23, 2015
818c7dd
Merge pull request #968 from jianghaolu/dev
Sep 23, 2015
b5af0cc
Work in progress
stankovski Sep 23, 2015
b994e6b
Merge pull request #971 from jianghaolu/subname
ogail Sep 24, 2015
05be958
Additional changes for RoleAssignments
shuagarw Sep 24, 2015
9fbfcd4
Merge branch 'dev' of github.com:Azure/azure-powershell into paramete…
shuagarw Sep 24, 2015
853c11a
[#103828190, #103425146, #103697132] Fix display and reported issues …
markcowl Sep 24, 2015
d3d7a9a
Merging with upstream
markcowl Sep 24, 2015
3de5d1e
Correcting merge error
markcowl Sep 24, 2015
4043cbd
prototype to isolate the resource management related artifacts
yugangw-msft Sep 24, 2015
c1a7975
Fixing tests and updating converters to handle null values
markcowl Sep 24, 2015
7eda13a
removing app.config files
markcowl Sep 24, 2015
460cfbc
remove useless output folder copying
yugangw-msft Sep 24, 2015
48e4ea9
Added help for Profile cmdlets [##103821006]
markcowl Sep 24, 2015
ca9097f
add scope build property
yugangw-msft Sep 24, 2015
776b344
create arm storage command solution
yugangw-msft Sep 24, 2015
044d728
Merge pull request #954 from markcowl/pocotypes
Sep 24, 2015
ca9b6b8
Merge branch 'dev' of github.com:Azure/azure-powershell into rmprofile
markcowl Sep 24, 2015
13c321d
Merge pull request #972 from markcowl/rmprofile
Sep 24, 2015
2bc9f92
Merge branch 'dev' of github.com:Azure/azure-powershell into paramete…
shuagarw Sep 24, 2015
16ae20f
create solution for arm compute, network, resource, automation,
yugangw-msft Sep 24, 2015
2c27318
Fixing issue with AzureEndpoints.
ms-alguerra Sep 24, 2015
b4b91aa
create keyvault, operationalInsights siterecovery, profile, sql,
yugangw-msft Sep 24, 2015
b7599d2
Merge pull request #965 from rhencke/patch-1
markcowl Sep 25, 2015
b7a4473
Merge pull request #969 from jasper-schneider/fixTests
markcowl Sep 25, 2015
8c041a4
Merge pull request #970 from shuagarw/parameterAndBugFixes
markcowl Sep 25, 2015
5d7c796
Merge pull request #975 from t-alguer/dev
markcowl Sep 25, 2015
c33c6dd
create rediscache solution
yugangw-msft Sep 25, 2015
aaba772
use const to represent common imported modules by test code
yugangw-msft Sep 25, 2015
aafa531
Fixed install script
stankovski Sep 25, 2015
8d71add
clean up the build.proj by not differetiating the rm or sm solutions
yugangw-msft Sep 25, 2015
44704ab
Removed Install-Module Azure from the shortcut
stankovski Sep 25, 2015
557bdfb
Merge pull request #940 from nityasharma/dev
markcowl Sep 25, 2015
24d86ec
Added version check
stankovski Sep 25, 2015
72e481d
Merge pull request #967 from MabOneSdk/release
markcowl Sep 25, 2015
42d311c
Merge pull request #978 from stankovski/dev
stankovski Sep 25, 2015
6da6284
Merge pull request #977 from yugangw-msft/build
stankovski Sep 25, 2015
107e43e
Added Uninstall to AzureRM
stankovski Sep 25, 2015
1a5564c
Added AzureRM.psd1 and AzureRM.psm1 signing
Sep 25, 2015
0227cc5
Merge branch 'dev' of github.com:stankovski/azure-powershell into dev
Sep 25, 2015
50e0e90
Merge pull request #981 from stankovski/dev
stankovski Sep 25, 2015
9f3c4fd
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Sep 25, 2015
1c15361
Updated version of Package for UsageAggregates
Matt-Westphal Sep 26, 2015
1f55cb8
fix the build configuration mismatch error in commands.profile.csproj
yugangw-msft Sep 26, 2015
36cce4f
Merge pull request #986 from yugangw-msft/sign
yugangw-msft Sep 28, 2015
2478981
move cmdlet solutions to their own folder
yugangw-msft Sep 25, 2015
e00e654
Merge pull request #985 from yugangw-msft/folder2
stankovski Sep 28, 2015
5c76be7
Merge pull request #984 from Matt-Westphal/dev
stankovski Sep 28, 2015
43677a5
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Sep 28, 2015
fe6b4f7
Current MSI fix progress
Sep 28, 2015
e29c69c
Removed caching
stankovski Sep 28, 2015
15888f9
Merge branch 'dev' of https://github.com/hovsepm/azure-powershell int…
stankovski Sep 28, 2015
1bf23d2
fix module publish issue
yugangw-msft Sep 28, 2015
e338f42
Change powershell.exe regerence to be system dependent
stankovski Sep 28, 2015
c406895
Merge pull request #990 from yugangw-msft/fixpublish
yugangw-msft Sep 28, 2015
92a9c55
Merge pull request #991 from stankovski/dev
Sep 28, 2015
75b0345
Fixed error message at the end of setup script.
Sep 28, 2015
aefb9c2
Merge pull request #992 from hovsepm/dev
Sep 28, 2015
5d00836
fix all solutions to have dependency on commands.common (was lost dur…
yugangw-msft Sep 28, 2015
b3bdebd
Fixed the fixed azure installer script.
Sep 28, 2015
c93bbbd
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Sep 28, 2015
2b231f5
Merge pull request #994 from hovsepm/dev
Sep 28, 2015
8f4f725
Merge pull request #993 from yugangw-msft/fixprofile
yugangw-msft Sep 28, 2015
89c3b28
Fixed uninstaller and added Admin role validation
Sep 28, 2015
25fee83
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Sep 28, 2015
052dd56
Merge pull request #995 from hovsepm/dev
Sep 28, 2015
95fc632
Add AzureStorage to scope of build.proj
yugangw-msft Sep 28, 2015
99cfeb9
Fixed test targets for Post-checkin job.
Sep 28, 2015
bc011e3
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Sep 28, 2015
f999881
Merge pull request #997 from yugangw-msft/azurestorage
yugangw-msft Sep 28, 2015
876ee46
Merge pull request #998 from hovsepm/dev
Sep 29, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
75 changes: 43 additions & 32 deletions AzurePowershell.Test.targets
Original file line number Diff line number Diff line change
Expand Up @@ -42,52 +42,64 @@
<TestTimeout Condition=" '$(TestTimeout)' == '' ">100000000</TestTimeout>
</PropertyGroup>

<ItemGroup>
<XUnitTests Include=".\src\ResourceManager\AzureBackup\Commands.AzureBackup.Test\bin\Debug\Microsoft.Azure.Commands.AzureBackup.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\SiteRecovery\Commands.SiteRecovery.Test\bin\Debug\Microsoft.Azure.Commands.SiteRecovery.Test.dll"/>
<XUnitTests Include=".\src\ServiceManagement\Common\Commands.Common.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Common.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Sql\Commands.Sql.Test\bin\Debug\Microsoft.Azure.Commands.Sql.Test.dll"/>
<XUnitTests Include=".\src\ServiceManagement\Services\Commands.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Test.dll"/>
<XUnitTests Include=".\src\ServiceManagement\StorSimple\Commands.StorSimple.Test\bin\Debug\Microsoft.WindowsAzure.Commands.StorSimple.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Resources\Commands.Resources.Test\bin\Debug\Microsoft.Azure.Commands.Resources.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Network\Commands.Network.Test\bin\Debug\Microsoft.Azure.Commands.Network.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\DataFactories\Commands.DataFactories.Test\bin\Debug\Microsoft.Azure.Commands.DataFactories.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Dns\Commands.Dns.Test\bin\Debug\Microsoft.Azure.Commands.Dns.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\bin\Debug\Microsoft.Azure.Commands.StreamAnalytics.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\OperationalInsights\Commands.OperationalInsights.Test\bin\Debug\Microsoft.Azure.Commands.OperationalInsights.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\AzureBatch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Websites\Commands.Websites.Test\bin\Debug\Microsoft.Azure.Commands.Websites.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\UsageAggregates\Commands.UsageAggregates.Test\bin\Debug\Microsoft.Azure.Commands.UsageAggregates.Test.dll"/>
<XUnitTests Include=".\src\ServiceManagement\ManagedCache\Commands.ManagedCache.Test\bin\Debug\Microsoft.Azure.Commands.ManagedCache.Test.dll"/>
<XUnitTests Include=".\src\ServiceManagement\RemoteApp\Commands.RemoteApp.Test\bin\Debug\Microsoft.Azure.Commands.RemoteApp.Tests.dll"/>
<XUnitTests Include=".\src\ServiceManagement\Common\Commands.ScenarioTest\bin\Debug\Microsoft.WindowsAzure.Commands.ScenarioTest.dll"/>
<XUnitTests Include=".\src\ServiceManagement\RecoveryServices\Commands.RecoveryServices.Test\bin\Debug\Microsoft.Azure.Commands.RecoveryServices.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\TrafficManager\Commands.TrafficManager2.Test\bin\Debug\Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests.dll"/>
<XUnitTests Include=".\src\ServiceManagement\Network\Commands.Network.Test\bin\Debug\Microsoft.WindowsAzure.Commands.ServiceManagement.Network.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\ApiManagement\Commands.ApiManagement.Test\bin\Debug\Microsoft.Azure.Commands.ApiManagement.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Profile\Commands.Profile.Test\bin\Debug\Microsoft.Azure.Commands.Profile.Test.dll"/>
</ItemGroup>


<Target Name="InvokeMSTest">
<!--Remove existing test result; otherwise mstest will error-->
<Delete Files="$(_testResult)"/>
<Exec
Command="MSTest.exe /testcontainer:$(_testAssembly) /testsettings:$(_testSettings) /category:$(_testFilter) /resultsfile:$(_testResult)"
ContinueOnError="false" />
</Target>

<Target Name="DeclareXunitTests">
<ItemGroup>
<AsmXUnitTests Include=".\src\ServiceManagement\Common\Commands.Common.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Common.Test.dll"/>
<AsmXUnitTests Include=".\src\ServiceManagement\Services\Commands.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Test.dll"/>
<AsmXUnitTests Include=".\src\ServiceManagement\StorSimple\Commands.StorSimple.Test\bin\Debug\Microsoft.WindowsAzure.Commands.StorSimple.Test.dll"/>
<AsmXUnitTests Include=".\src\ServiceManagement\ManagedCache\Commands.ManagedCache.Test\bin\Debug\Microsoft.Azure.Commands.ManagedCache.Test.dll"/>
<AsmXUnitTests Include=".\src\ServiceManagement\RemoteApp\Commands.RemoteApp.Test\bin\Debug\Microsoft.Azure.Commands.RemoteApp.Tests.dll"/>
<AsmXUnitTests Include=".\src\ServiceManagement\Common\Commands.ScenarioTest\bin\Debug\Microsoft.WindowsAzure.Commands.ScenarioTest.dll"/>
<AsmXUnitTests Include=".\src\ServiceManagement\RecoveryServices\Commands.RecoveryServices.Test\bin\Debug\Microsoft.Azure.Commands.RecoveryServices.Test.dll"/>
<AsmXUnitTests Include=".\src\ServiceManagement\Network\Commands.Network.Test\bin\Debug\Microsoft.WindowsAzure.Commands.ServiceManagement.Network.Test.dll"/>
</ItemGroup>
<ItemGroup Condition=" '$(scope)' == '' ">
<XUnitTests Include=".\src\ResourceManager\SiteRecovery\Commands.SiteRecovery.Test\bin\Debug\Microsoft.Azure.Commands.SiteRecovery.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Sql\Commands.Sql.Test\bin\Debug\Microsoft.Azure.Commands.Sql.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Resources\Commands.Resources.Test\bin\Debug\Microsoft.Azure.Commands.Resources.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Network\Commands.Network.Test\bin\Debug\Microsoft.Azure.Commands.Network.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\DataFactories\Commands.DataFactories.Test\bin\Debug\Microsoft.Azure.Commands.DataFactories.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Dns\Commands.Dns.Test\bin\Debug\Microsoft.Azure.Commands.Dns.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\bin\Debug\Microsoft.Azure.Commands.StreamAnalytics.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\OperationalInsights\Commands.OperationalInsights.Test\bin\Debug\Microsoft.Azure.Commands.OperationalInsights.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\AzureBatch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Websites\Commands.Websites.Test\bin\Debug\Microsoft.Azure.Commands.Websites.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\UsageAggregates\Commands.UsageAggregates.Test\bin\Debug\Microsoft.Azure.Commands.UsageAggregates.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\TrafficManager\Commands.TrafficManager2.Test\bin\Debug\Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests.dll"/>
<XUnitTests Include=".\src\ResourceManager\ApiManagement\Commands.ApiManagement.Test\bin\Debug\Microsoft.Azure.Commands.ApiManagement.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\Profile\Commands.Profile.Test\bin\Debug\Microsoft.Azure.Commands.Profile.Test.dll"/>
<XUnitTests Include=".\src\ResourceManager\AzureBackup\Commands.AzureBackup.Test\bin\Debug\Microsoft.Azure.Commands.AzureBackup.Test.dll"/>
<XUnitTests Include="@(AsmXUnitTests)"/>
</ItemGroup>
<ItemGroup Condition=" '$(scope)' == 'ServiceManagement' ">
<XUnitTests Include="@(AsmXUnitTests)"/>
</ItemGroup>
<ItemGroup Condition=" '$(scope)' !='' and '$(scope)' != 'ServiceManagement' ">
<XUnitTests Include="$(MSBuildProjectDirectory)\src\ResourceManager\$(scope)\*\bin\Debug\*.Test.dll"/>
</ItemGroup>
</Target>

<Target Name="InvokeXUnit">
<Target Name="InvokeXUnit" DependsOnTargets="DeclareXunitTests">
<Message Importance="high" Text="Running XUnit tests" />
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
<Exec
Command="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.console.x86.exe &quot;%(XUnitTests.Identity)&quot; -parallel none -maxthreads 0 -trait &quot;AcceptanceType=CheckIn&quot; -html &quot;$(TestOutputDirectory)\%(XUnitTests.Filename).html&quot;"
Timeout="$(TestTimeout)" ContinueOnError="false"/>
Timeout="$(TestTimeout)" ContinueOnError="false" Condition=" @(XUnitTests) != '' "/>
<OnError ExecuteTargets="TimeoutErrorHandler"/>
</Target>

<Target Name="InvokeXUnitAll">
<Target Name="InvokeXUnitAll" DependsOnTargets="DeclareXunitTests">
<Message Importance="high" Text="Running XUnit tests" />
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
<Exec
Expand All @@ -101,7 +113,6 @@
</Target>

<Target Name="BeforeRunTests">
<Message Importance="high" Text="You are required to have installed a version of Visual Studio with support for MSTest (and MSTest on your path)." />
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
</Target>

Expand Down
73 changes: 39 additions & 34 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@

/p:CodeSign=True;DelaySign=True
Test the code sign workflow locally.


/p:Scope
'Azure': service management
'AzureStorage': storage data plane cmdlets
'Subfolder under src\ResourceManager': An individual cmdlet module
By default, it builds all
-->

<!-- Define build properties -->
Expand All @@ -36,11 +41,13 @@
<SetupOutputDirectory>$(PublishDirectory)\Setup</SetupOutputDirectory>
<TestOutputDirectory>$(PublishDirectory)\TestResults</TestOutputDirectory>
<BuildInParallel Condition="'$(BuildInParallel)' == ''">true</BuildInParallel>
<NuGetPublishingSource Condition=" '$(NuGetPublishingSource)' != '' ">http://psget/PSGallery/api/v2/</NuGetPublishingSource>
<NuGetPublishingSource Condition=" '$(NuGetPublishingSource)' == '' ">http://psget/PSGallery/api/v2/</NuGetPublishingSource>
</PropertyGroup>
<ItemGroup>
<AzureResourceManagerSln Include=".\src\ResourceManager.sln" />
<AzureServiceManagementSln Include=".\src\ServiceManagement.sln" />
<CmdletSolutionsToBuild Include=".\src\ResourceManager\**\*.sln;.\src\ServiceManagement\ServiceManagement.sln" Condition=" '$(Scope)' == '' "/>
<CmdletSolutionsToBuild Include=".\src\ResourceManager\$(Scope)\*.sln" Condition=" '$(Scope)' != '' and '$(Scope)' != 'ServiceManagement' "/>
<CmdletSolutionsToBuild Include=".\src\ServiceManagement\ServiceManagement.sln"
Condition=" '$(Scope)' != '' and ('$(Scope)' == 'ServiceManagement' or '$(Scope)' == 'AzureStorage') "/>
<SetupSln Include=".\setup\azurepowershell.sln" />
<SetupPowershellGetSln Include=".\setup-powershellget\powershellget.sln" />
</ItemGroup>
Expand All @@ -64,28 +71,19 @@

<!-- Clean the build in all configurations -->
<Target Name="Clean">
<!-- Clean the solutions -->
<Message Importance="high" Text="Cleaning Cmdlets..." ContinueOnError="false" />
<MSBuild
Projects="@(AzureResourceManagerSln)"
Targets="Clean"
Properties="Configuration=$(Configuration);Platform=Any CPU"
ContinueOnError="false" />
<MSBuild
Projects="@(AzureServiceManagementSln)"
Targets="Clean"
Properties="Configuration=$(Configuration);Platform=Any CPU"
ContinueOnError="false" />
<MSBuild
Projects="@(SetupSln)"
Projects="@(CmdletSolutionsToBuild)"
Targets="Clean"
Properties="Configuration=$(Configuration);Platform=Any CPU"
ContinueOnError="false" />

<MSBuild
Projects="@(SetupPowershellGetSln)"
Targets="Clean"
Properties="Configuration=$(Configuration);Platform=Any CPU"
ContinueOnError="false" />
ContinueOnError="false"
Condition=" '$(Scope)' == '' "/>

<!-- Delete the publish files -->
<Message Importance="high" Text="Cleaning publish files..." ContinueOnError="false" />
Expand Down Expand Up @@ -113,7 +111,7 @@
</Target>

<PropertyGroup>
<NuGetCommand>$(MSBuildProjectDirectory)\src\.nuget\NuGet.exe</NuGetCommand>
<NuGetCommand>$(MSBuildProjectDirectory)\tools\NuGet.exe</NuGetCommand>
<NuGetRestoreConfigFile>$(MSBuildProjectDirectory)\restore.config</NuGetRestoreConfigFile>
<NuGetRestoreConfigSwitch>-ConfigFile &quot;$(NuGetRestoreConfigFile)&quot;</NuGetRestoreConfigSwitch>
<PowerShellCommand>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellCommand>
Expand All @@ -140,9 +138,9 @@
<Exec Command="$(NuGetCommand) sources add -Name LocalFeed -Source &quot;$(MSBuildProjectDirectory)\tools\LocalFeed&quot; $(NuGetRestoreConfigSwitch)"/>

<!-- Restore packages -->
<Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\src\ResourceManager.sln $(NuGetRestoreConfigSwitch)" ContinueOnError="false" />
<Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\src\ServiceManagement.sln $(NuGetRestoreConfigSwitch)" ContinueOnError="false" />
<Exec Command="$(NuGetCommand) restore %(CmdletSolutionsToBuild.FullPath) $(NuGetRestoreConfigSwitch)"
ContinueOnError="false" />

<!--Restore the xunit runner needed to run unit tests-->
<Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\packages.config -PackagesDirectory $(MSBuildProjectDirectory)\packages" />

Expand All @@ -153,15 +151,11 @@
<Target Name="Build" DependsOnTargets="RestoreNugetPackages;BuildMsBuildTask">
<Message Importance="high" Text="Building Cmdlets..." />
<MSBuild
Projects="@(AzureResourceManagerSln)"
Projects="@(CmdletSolutionsToBuild)"
Targets="Build"
Properties="Configuration=$(Configuration);Platform=Any CPU"
BuildInParallel="$(BuildInParallel)" ContinueOnError="false" />
<MSBuild
Projects="@(AzureServiceManagementSln)"
Targets="Build"
Properties="Configuration=$(Configuration);Platform=Any CPU"
BuildInParallel="$(BuildInParallel)" ContinueOnError="false" />
BuildInParallel="$(BuildInParallel)"
ContinueOnError="false" />

<CallTarget Targets="CodeSignBinaries" Condition=" '$(CodeSign)' == 'true' " />

Expand All @@ -170,14 +164,18 @@
Projects="@(SetupPowershellGetSln)"
Targets="Build"
Properties="Configuration=$(Configuration);Platform=Any CPU"
ContinueOnError="false" />
ContinueOnError="false"
Condition=" '$(Scope)' == '' "/>

<MSBuild
Projects="@(SetupSln)"
Targets="Build"
Properties="Configuration=$(Configuration);Platform=Any CPU"
ContinueOnError="false" />
ContinueOnError="false"
Condition=" '$(Scope)' == '' "/>

<CallTarget Targets="CodeSignInstaller" Condition=" '$(CodeSign)' == 'true' " />
<CallTarget Targets="CodeSignInstaller"
Condition=" '$(CodeSign)' == 'true' and '$(Scope)' == ''" />
</Target>

<!-- Do everything possible -->
Expand Down Expand Up @@ -205,6 +203,10 @@
<!-- Copying shortcut to be signed -->
<Copy SourceFiles="$(LibraryRoot)setup-powershellget\Setup\ShortcutStartup.ps1"
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" />
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psd1"
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" />
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psm1"
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" />

<ItemGroup>
<DelaySignedAssembliesToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\Microsoft*Azure*Commands*.dll" />
Expand Down Expand Up @@ -256,6 +258,10 @@
<!-- Copying signed shortcut back -->
<Copy SourceFiles="$(LibrarySourceFolder)\Package\$(Configuration)\ShortcutStartup.ps1"
DestinationFolder="$(LibraryRoot)setup-powershellget\Setup" />
<Copy SourceFiles="$(LibrarySourceFolder)\Package\$(Configuration)\AzureRM.psd1"
DestinationFolder="$(LibraryRoot)tools\AzureRM" />
<Copy SourceFiles="$(LibrarySourceFolder)\Package\$(Configuration)\AzureRM.psm1"
DestinationFolder="$(LibraryRoot)tools\AzureRM" />
</Target>

<Target Name="CodeSignInstaller">
Expand Down Expand Up @@ -292,8 +298,7 @@
<Target Name="Publish" DependsOnTargets="Build">
<Error Condition=" '$(NuGetKey)' == '' " Text="You must provide the NuGetKey parameter to the build: /p:NuGetKey=YOUR_PUBLISHING_KEY" />
<Message Importance="high" Text="Publishing Cmdlets..." />

<Exec Command="$(PowerShellCommand) -NoLogo -NoProfile -Command &quot;. $(LibraryToolsFolder)\PublishModules.ps1 $(Configuration) $(NuGetKey) \&quot;$(NuGetPublishingSource)\&quot;&quot;"/>
<Exec Command="$(PowerShellCommand) -NonInteractive -NoLogo -NoProfile -Command &quot;. $(LibraryToolsFolder)\PublishModules.ps1 $(Configuration) $(Scope) $(NuGetKey) \&quot;$(NuGetPublishingSource)\&quot; &quot;"/>
</Target>

<PropertyGroup>
Expand All @@ -305,7 +310,7 @@
<Import Project="$(MSBuildThisFileDirectory)AzurePowershell.test.targets"/>

<!-- Run checkin tests for each pull request -->
<Target Name="Test" DependsOnTargets="Build;BeforeRunTests">
<Target Name="Test" DependsOnTargets="BeforeRunTests">
<Message Importance="high" Text="Running check in tests..." />
<CallTarget Targets="InvokeXUnit"/>
</Target>
Expand Down
28 changes: 18 additions & 10 deletions setup-powershellget/Setup/ShortcutStartup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,35 @@ Finalizing installation of Azure PowerShell.
Installing Azure Modules from PowerShell Gallery.
This may take some time...
"@
$env:PSModulePath = "$env:USERPROFILE\Documents\WindowsPowerShell\Modules;$env:ProgramFiles\WindowsPowerShell\Modules;$env:SystemRoot\system32\WindowsPowerShell\v1.0\Modules\"

Import-Module PackageManagement
Get-PackageProvider -Name NuGet -ForceBootstrap

$result = Get-PackageProvider -Name NuGet -ForceBootstrap

Import-Module PowerShellGet

$NuGetPublishingSource = $env:NuGetPublishingSource
if ([string]::IsNullOrWhiteSpace($NuGetPublishingSource)) {
Install-Module AzureRM -Repository $NuGetPublishingSource
} else {
Install-Module AzureRM
}
Install-Module AzureRM
Write-Output "AzureRM $((Get-InstalledModule -Name AzureRM)[0].Version) installed..."
Update-AzureRM
} else {
cd c:\
$welcomeMessage = @"
For a list of all Azure cmdlets type 'help azure'.
For a list of Azure Pack cmdlets type 'Get-Command *wapack*'.

To use Azure Service Management cmdlets please execute the following cmdlet:
Install-Module Azure
"@
Write-Output $welcomeMessage

$VerbosePreference = "Continue"
}
}
catch { Write-Output $error }
if ($error) {
Read-Host -Prompt "An error occured during installation. Press any key..."
catch
{
Write-Output "An error occured during installation."
Write-Output $error
Write-Output "Press any key..."
$host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
}
Loading