|
42 | 42 | <TestOutputDirectory>$(PublishDirectory)\TestResults</TestOutputDirectory>
|
43 | 43 | <BuildInParallel Condition="'$(BuildInParallel)' == ''">true</BuildInParallel>
|
44 | 44 | <NuGetPublishingSource Condition=" '$(NuGetPublishingSource)' == '' ">http://psget/PSGallery/api/v2/</NuGetPublishingSource>
|
| 45 | + <Scope Condition=" $(Scope) == '' " >all</Scope> |
45 | 46 | </PropertyGroup>
|
46 | 47 | <ItemGroup>
|
47 |
| - <CmdletSolutionsToBuild Include=".\src\ResourceManager\**\*.sln;.\src\ServiceManagement\ServiceManagement.sln" Condition=" '$(Scope)' == '' "/> |
48 |
| - <CmdletSolutionsToBuild Include=".\src\ResourceManager\$(Scope)\*.sln" Condition=" '$(Scope)' != '' and '$(Scope)' != 'ServiceManagement' "/> |
| 48 | + <CmdletSolutionsToBuild Include=".\src\ResourceManager\**\*.sln;.\src\ServiceManagement\ServiceManagement.sln" Condition=" '$(Scope)' == 'all' "/> |
| 49 | + <CmdletSolutionsToBuild Include=".\src\ResourceManager\$(Scope)\*.sln" |
| 50 | + Condition=" '$(Scope)' != 'all' and '$(Scope)' != 'ServiceManagement' and '$(Scope)' != 'AzureStorage' "/> |
49 | 51 | <CmdletSolutionsToBuild Include=".\src\ServiceManagement\ServiceManagement.sln"
|
50 |
| - Condition=" '$(Scope)' != '' and ('$(Scope)' == 'ServiceManagement' or '$(Scope)' == 'AzureStorage') "/> |
| 52 | + Condition=" '$(Scope)' == 'ServiceManagement' or '$(Scope)' == 'AzureStorage' "/> |
51 | 53 | <SetupSln Include=".\setup\azurepowershell.sln" />
|
52 | 54 | <SetupPowershellGetSln Include=".\setup-powershellget\powershellget.sln" />
|
53 | 55 | </ItemGroup>
|
|
83 | 85 | Targets="Clean"
|
84 | 86 | Properties="Configuration=$(Configuration);Platform=Any CPU"
|
85 | 87 | ContinueOnError="false"
|
86 |
| - Condition=" '$(Scope)' == '' "/> |
| 88 | + Condition=" '$(Scope)' == 'all' "/> |
87 | 89 |
|
88 | 90 | <!-- Delete the publish files -->
|
89 | 91 | <Message Importance="high" Text="Cleaning publish files..." ContinueOnError="false" />
|
|
165 | 167 | Targets="Build"
|
166 | 168 | Properties="Configuration=$(Configuration);Platform=Any CPU"
|
167 | 169 | ContinueOnError="false"
|
168 |
| - Condition=" '$(Scope)' == '' "/> |
| 170 | + Condition=" '$(Scope)' == 'all' "/> |
169 | 171 |
|
170 | 172 | <MSBuild
|
171 | 173 | Projects="@(SetupSln)"
|
172 | 174 | Targets="Build"
|
173 | 175 | Properties="Configuration=$(Configuration);Platform=Any CPU"
|
174 | 176 | ContinueOnError="false"
|
175 |
| - Condition=" '$(Scope)' == '' "/> |
| 177 | + Condition=" '$(Scope)' == 'all' "/> |
176 | 178 |
|
177 | 179 | <CallTarget Targets="CodeSignInstaller"
|
178 |
| - Condition=" '$(CodeSign)' == 'true' and '$(Scope)' == ''" /> |
| 180 | + Condition=" '$(CodeSign)' == 'true' and '$(Scope)' == 'all'" /> |
179 | 181 | </Target>
|
180 | 182 |
|
181 | 183 | <!-- Do everything possible -->
|
|
295 | 297 | </Target>
|
296 | 298 |
|
297 | 299 | <!-- Publish all packages -->
|
298 |
| - <Target Name="Publish" DependsOnTargets="Build"> |
| 300 | + <Target Name="Publish"> |
299 | 301 | <Error Condition=" '$(NuGetKey)' == '' " Text="You must provide the NuGetKey parameter to the build: /p:NuGetKey=YOUR_PUBLISHING_KEY" />
|
300 | 302 | <Message Importance="high" Text="Publishing Cmdlets..." />
|
301 | 303 | <Exec Command="$(PowerShellCommand) -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\PublishModules.ps1 $(Configuration) $(Scope) $(NuGetKey) \"$(NuGetPublishingSource)\" ""/>
|
|
0 commit comments