diff --git a/AzurePowershell.Test.targets b/AzurePowershell.Test.targets
index bac576918008..9fa5c6c3e5cc 100644
--- a/AzurePowershell.Test.targets
+++ b/AzurePowershell.Test.targets
@@ -62,7 +62,7 @@
-
+
@@ -85,7 +85,7 @@
-
+
diff --git a/build.proj b/build.proj
index b3aecfbbdfda..68e20738be95 100644
--- a/build.proj
+++ b/build.proj
@@ -42,12 +42,14 @@
$(PublishDirectory)\TestResults
true
http://psget/PSGallery/api/v2/
+ all
-
-
+
+
+ Condition=" '$(Scope)' == 'ServiceManagement' or '$(Scope)' == 'AzureStorage' "/>
@@ -83,7 +85,7 @@
Targets="Clean"
Properties="Configuration=$(Configuration);Platform=Any CPU"
ContinueOnError="false"
- Condition=" '$(Scope)' == '' "/>
+ Condition=" '$(Scope)' == 'all' "/>
@@ -165,17 +167,17 @@
Targets="Build"
Properties="Configuration=$(Configuration);Platform=Any CPU"
ContinueOnError="false"
- Condition=" '$(Scope)' == '' "/>
+ Condition=" '$(Scope)' == 'all' "/>
+ Condition=" '$(Scope)' == 'all' "/>
+ Condition=" '$(CodeSign)' == 'true' and '$(Scope)' == 'all'" />
@@ -295,7 +297,7 @@
-
+
diff --git a/src/ResourceManager/ApiManagement/ApiManagement.sln b/src/ResourceManager/ApiManagement/ApiManagement.sln
index 509ae32588a3..733aa0b7732b 100644
--- a/src/ResourceManager/ApiManagement/ApiManagement.sln
+++ b/src/ResourceManager/ApiManagement/ApiManagement.sln
@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
-VisualStudioVersion = 12.0.31101.0
+VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
EndProject
@@ -32,6 +32,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common", "..\..\Co
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ServiceManagement.Common", "..\..\ServiceManagement\Common\Commands.ServiceManagement.Common\Commands.ServiceManagement.Common.csproj", "{CFF09E81-1E31-444E-B4D4-A21E946C29E2}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Tags", "..\Tags\Commands.Tags\Commands.Tags.csproj", "{2493A8F7-1949-4F29-8D53-9D459046C3B8}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -94,6 +96,10 @@ Global
{CFF09E81-1E31-444E-B4D4-A21E946C29E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CFF09E81-1E31-444E-B4D4-A21E946C29E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CFF09E81-1E31-444E-B4D4-A21E946C29E2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/tools/PublishModules.ps1 b/tools/PublishModules.ps1
index 9f8ba4ac00c8..7406de70a8f3 100644
--- a/tools/PublishModules.ps1
+++ b/tools/PublishModules.ps1
@@ -53,10 +53,19 @@ if ($repo -ne $null) {
Register-PSRepository -Name $repoName -SourceLocation $repositoryLocation -PublishLocation $repositoryLocation/package -InstallationPolicy Trusted
}
+$resourceManagerRootFolder = "$packageFolder\$buildConfig\ResourceManager\AzureResourceManager"
+
+if ($scope -eq 'All') {
+ # Publish AzureRM.Profile first which is the common dependency
+ Write-Host "Publishing profile module"
+ Publish-Module -Path "$resourceManagerRootFolder\AzureRM.Profile" -NuGetApiKey $apiKey -Repository $repoName
+ Write-Host "Published profile module"
+}
+
if (($scope -eq 'All') -or ($scope -eq 'ServiceManagement')) {
$modulePath = "$packageFolder\$buildConfig\ServiceManagement\Azure"
# Publish Azure module
- Write-Host "Publishing Azure module from $modulePath"
+ Write-Host "Publishing ServiceManagement(aka Azure) module from $modulePath"
Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName
}
@@ -75,15 +84,17 @@ if ($scope -eq 'AzureRM') {
Write-Host "Published Azure module"
}
-$resourceManagerRootFolder = "$packageFolder\$buildConfig\ResourceManager\AzureResourceManager"
$resourceManagerModules = Get-ChildItem -Path $resourceManagerRootFolder -Directory
-if ($scope -eq 'All') {
- # Publish AzureRM modules
+if ($scope -eq 'All') {
foreach ($module in $resourceManagerModules) {
- $modulePath = $module.FullName
- Write-Host "Publishing $module module from $modulePath"
- Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName
- Write-Host "Published $module module"
+ # filter out AzureRM.Profile which always gets published first
+ # And "Azure.Storage" which is built out as test dependencies
+ if (($module.Name -ne "AzureRM.Profile") -and ($module.Name -ne "Azure.Storage")) {
+ $modulePath = $module.FullName
+ Write-Host "Publishing $module module from $modulePath"
+ Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName
+ Write-Host "Published $module module"
+ }
}
} else {
$modulePath = Join-Path $resourceManagerRootFolder "AzureRM.$scope"