|
20 | 20 | <BuildInParallel Condition="'$(BuildInParallel)' == ''">true</BuildInParallel> |
21 | 21 | </PropertyGroup> |
22 | 22 | <ItemGroup> |
23 | | - <AzurePowerShellSln Include=".\src\AzurePowerShell.sln" /> |
| 23 | + <AzureResourceManagerSln Include=".\src\ResourceManager.sln" /> |
| 24 | + <AzureServiceManagementSln Include=".\src\ServiceManagement.sln" /> |
24 | 25 | <SetupSln Include=".\setup\azurepowershell.sln" /> |
| 26 | + <SetupPowershellGetSln Include=".\setup-powershellget\powershellget.sln" /> |
25 | 27 | </ItemGroup> |
26 | 28 |
|
27 | 29 | <UsingTask |
28 | | - AssemblyFile="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.runner.msbuild.dll" |
| 30 | + AssemblyFile="$(MSBuildProjectDirectory)\src\packages\xunit.MSBuild.2.0.0.0\tools\xunit.runner.msbuild.dll" |
29 | 31 | TaskName="Xunit.Runner.MSBuild.xunit" /> |
30 | 32 |
|
31 | 33 | <!-- Clean the build in all configurations --> |
32 | 34 | <Target Name="Clean"> |
33 | 35 | <!-- Clean the solutions --> |
34 | 36 | <Message Importance="high" Text="Cleaning Cmdlets..." ContinueOnError="false" /> |
35 | 37 | <MSBuild |
36 | | - Projects="@(AzurePowerShellSln)" |
| 38 | + Projects="@(AzureResourceManagerSln)" |
37 | 39 | Targets="Clean" |
38 | 40 | Properties="$(DebugBuildConfig)" |
39 | 41 | ContinueOnError="false" /> |
40 | 42 | <MSBuild |
41 | | - Projects="@(AzurePowerShellSln)" |
| 43 | + Projects="@(AzureResourceManagerSln)" |
| 44 | + Targets="Clean" |
| 45 | + Properties="$(ReleaseBuildConfig)" |
| 46 | + ContinueOnError="false" /> |
| 47 | + <MSBuild |
| 48 | + Projects="@(AzureServiceManagementSln)" |
| 49 | + Targets="Clean" |
| 50 | + Properties="$(DebugBuildConfig)" |
| 51 | + ContinueOnError="false" /> |
| 52 | + <MSBuild |
| 53 | + Projects="@(AzureServiceManagementSln)" |
42 | 54 | Targets="Clean" |
43 | 55 | Properties="$(ReleaseBuildConfig)" |
44 | 56 | ContinueOnError="false" /> |
|
47 | 59 | Targets="Clean" |
48 | 60 | Properties="$(DebugBuildConfig)" |
49 | 61 | ContinueOnError="false" /> |
50 | | - |
| 62 | + |
51 | 63 | <!-- Delete the publish files --> |
52 | 64 | <Message Importance="high" Text="Cleaning publish files..." ContinueOnError="false" /> |
53 | 65 | <ItemGroup> |
|
74 | 86 | </Target> |
75 | 87 |
|
76 | 88 | <PropertyGroup> |
77 | | - <NuGetCommand>$(MSBuildProjectDirectory)\src\.nuget\NuGet.exe</NuGetCommand> |
78 | | - <NuGetRestoreConfigFile>$(MSBuildProjectDirectory)\restore.config</NuGetRestoreConfigFile> |
79 | | - <NuGetRestoreConfigSwitch>-ConfigFile "$(NuGetRestoreConfigFile)"</NuGetRestoreConfigSwitch> |
| 89 | + <NuGetCommand>$(MSBuildProjectDirectory)\src\.nuget\NuGet.exe</NuGetCommand> |
| 90 | + <NuGetRestoreConfigFile>$(MSBuildProjectDirectory)\restore.config</NuGetRestoreConfigFile> |
| 91 | + <NuGetRestoreConfigSwitch>-ConfigFile "$(NuGetRestoreConfigFile)"</NuGetRestoreConfigSwitch> |
80 | 92 | </PropertyGroup> |
81 | 93 |
|
82 | 94 | <!-- |
|
88 | 100 | <NuGetCache Include="$(LOCALAPPDATA)\NuGet\Cache\*.nupkg"/> |
89 | 101 | </ItemGroup> |
90 | 102 |
|
91 | | - <!-- Delete NuGet cache--> |
| 103 | + <!-- Delete NuGet cache--> |
92 | 104 | <Delete Files="@(NuGetCache)" /> |
93 | 105 |
|
94 | 106 | <Delete Files="$(NuGetRestoreConfigFile)" /> |
|
101 | 113 | <Exec Command="$(NuGetCommand) sources add -Name LocalFeed -Source "$(MSBuildProjectDirectory)\tools\LocalFeed" $(NuGetRestoreConfigSwitch)"/> |
102 | 114 |
|
103 | 115 | <!-- Restore packages --> |
104 | | - <Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\src\AzurePowerShell.sln $(NuGetRestoreConfigSwitch)" ContinueOnError="false" /> |
| 116 | + <Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\src\ResourceManager.sln $(NuGetRestoreConfigSwitch)" ContinueOnError="false" /> |
| 117 | + <Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\src\ServiceManagement.sln $(NuGetRestoreConfigSwitch)" ContinueOnError="false" /> |
105 | 118 |
|
106 | 119 | <!--Restore the xunit runner needed to run unit tests--> |
107 | 120 | <Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\packages.config -PackagesDirectory $(MSBuildProjectDirectory)\packages" /> |
|
113 | 126 | <Target Name="BuildCmdlets" DependsOnTargets="ForceRestorePackages"> |
114 | 127 | <Message Importance="high" Text="Building Cmdlets..." /> |
115 | 128 | <MSBuild |
116 | | - Projects="@(AzurePowerShellSln)" |
| 129 | + Projects="@(AzureResourceManagerSln)" |
| 130 | + Targets="Build" |
| 131 | + Properties="$(DebugBuildConfig)" |
| 132 | + BuildInParallel="$(BuildInParallel)" |
| 133 | + ContinueOnError="false" /> |
| 134 | + <MSBuild |
| 135 | + Projects="@(AzureResourceManagerSln)" |
| 136 | + Targets="Build" |
| 137 | + Properties="$(ReleaseBuildConfig)" |
| 138 | + BuildInParallel="$(BuildInParallel)" |
| 139 | + ContinueOnError="false" /> |
| 140 | + <MSBuild |
| 141 | + Projects="@(AzureServiceManagementSln)" |
117 | 142 | Targets="Build" |
118 | 143 | Properties="$(DebugBuildConfig)" |
119 | 144 | BuildInParallel="$(BuildInParallel)" |
120 | 145 | ContinueOnError="false" /> |
121 | 146 | <MSBuild |
122 | | - Projects="@(AzurePowerShellSln)" |
| 147 | + Projects="@(AzureServiceManagementSln)" |
123 | 148 | Targets="Build" |
124 | 149 | Properties="$(ReleaseBuildConfig)" |
125 | 150 | BuildInParallel="$(BuildInParallel)" |
|
136 | 161 | Importance="high" |
137 | 162 | Text="You are required to have installed the WiX Toolset at http://wix.codeplex.com/releases/view/115492 (Wix38.msi)" |
138 | 163 | ContinueOnError="false" /> |
| 164 | + <MSBuild |
| 165 | + Projects="@(SetupPowershellGetSln)" |
| 166 | + Targets="Build" |
| 167 | + Properties="$(DebugBuildConfig)" |
| 168 | + ContinueOnError="false" /> |
139 | 169 | <MSBuild |
140 | 170 | Projects="@(SetupSln)" |
141 | 171 | Targets="Build" |
|
153 | 183 | Importance="high" |
154 | 184 | Text="You are required to have installed the WiX Toolset at http://wix.codeplex.com/releases/view/115492 (Wix38.msi)" |
155 | 185 | ContinueOnError="false" /> |
| 186 | + <MSBuild |
| 187 | + Projects="@(SetupPowershellGetSln)" |
| 188 | + Targets="Build" |
| 189 | + Properties="$(ReleaseBuildConfig)" |
| 190 | + ContinueOnError="false" /> |
156 | 191 | <MSBuild |
157 | 192 | Projects="@(SetupSln)" |
158 | 193 | Targets="Build" |
|
171 | 206 | <Target Name="BuildRelease" DependsOnTargets="ForceRestorePackages"> |
172 | 207 | <Message Importance="high" Text="Building Cmdlets in Release config..." /> |
173 | 208 | <MSBuild |
174 | | - Projects="@(AzurePowerShellSln)" |
| 209 | + Projects="@(AzureResourceManagerSln)" |
| 210 | + Targets="Build" |
| 211 | + Properties="$(ReleaseBuildConfig)" |
| 212 | + BuildInParallel="$(BuildInParallel)" |
| 213 | + ContinueOnError="false" /> |
| 214 | + <MSBuild |
| 215 | + Projects="@(AzureServiceManagementSln)" |
175 | 216 | Targets="Build" |
176 | 217 | Properties="$(ReleaseBuildConfig)" |
177 | 218 | BuildInParallel="$(BuildInParallel)" |
|
182 | 223 | <Target Name="BuildDebug" DependsOnTargets="ForceRestorePackages"> |
183 | 224 | <Message Importance="high" Text="Building Cmdlets in Debug config..." /> |
184 | 225 | <MSBuild |
185 | | - Projects="@(AzurePowerShellSln)" |
| 226 | + Projects="@(AzureResourceManagerSln)" |
| 227 | + Targets="Build" |
| 228 | + Properties="$(DebugBuildConfig)" |
| 229 | + BuildInParallel="$(BuildInParallel)" |
| 230 | + ContinueOnError="false" /> |
| 231 | + <MSBuild |
| 232 | + Projects="@(AzureServiceManagementSln)" |
186 | 233 | Targets="Build" |
187 | 234 | Properties="$(DebugBuildConfig)" |
188 | 235 | BuildInParallel="$(BuildInParallel)" |
|
0 commit comments