Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

294 lines (268 sloc) 14.119 kb
<?xml version="1.0" encoding="utf-8"?>
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="4.0"
DefaultTargets="Clean;BuildDebug;BuildReleaseSigned;BuildSetupDebug">
<!-- Define build properties -->
<PropertyGroup>
<ManagementCmdletBinDirectory>.\WindowsAzurePowershell\src\Management\bin</ManagementCmdletBinDirectory>
<ManagementTestDirectory>.\WindowsAzurePowershell\src\Management.Test\bin</ManagementTestDirectory>
<ManagementTestAssemblyName>Microsoft.WindowsAzure.Management.Test.dll</ManagementTestAssemblyName>
<CloudServiceCmdletBinDirectory>.\WindowsAzurePowershell\src\Management.CloudService\bin</CloudServiceCmdletBinDirectory>
<CloudServiceTestDirectory>.\WindowsAzurePowershell\src\Management.CloudService.Test\bin</CloudServiceTestDirectory>
<CloudServiceTestAssemblyName>Microsoft.WindowsAzure.Management.CloudService.Test.dll</CloudServiceTestAssemblyName>
<ScaffoldingReleaseSourceDir>.\Package\Release\Resources</ScaffoldingReleaseSourceDir>
<ScaffoldingReleaseDestinationDir>.\Package\Release</ScaffoldingReleaseDestinationDir>
<ScaffoldingDebugSourceDir>.\Package\Debug\Resources</ScaffoldingDebugSourceDir>
<ScaffoldingDebugDestinationDir>.\Package\Debug</ScaffoldingDebugDestinationDir>
<ReleaseScaffoldingDir>.\Package\Release\Scaffolding</ReleaseScaffoldingDir>
<DebugScaffoldingDir>.\Package\Debug\Scaffolding</DebugScaffoldingDir>
<TestSettings>.\WindowsAzurePowershell\src\Local.testsettings</TestSettings>
<ScenarioTestSettings>.\WindowsAzurePowershell\src\Scenario.testsettings</ScenarioTestSettings>
<ScenarioTestDebug>.\WindowsAzurePowershell\src\Management.ScenarioTest\bin\Debug\Microsoft.WindowsAzure.Management.ScenarioTest.dll</ScenarioTestDebug>
<ManagementTestDebug>.\WindowsAzurePowershell\src\Management.Test\bin\Debug\Microsoft.WindowsAzure.Management.Test.dll</ManagementTestDebug>
<CloudServiceTestDebug>.\WindowsAzurePowershell\src\Management.CloudService.Test\bin\Debug\Microsoft.WindowsAzure.Management.CloudService.Test.dll</CloudServiceTestDebug>
<ServiceBusTestDebug>.\WindowsAzurePowershell\src\Management.ServiceBus.Test\bin\Debug\Microsoft.WindowsAzure.Management.ServiceBus.Test.dll</ServiceBusTestDebug>
<ServiceManagementTestDebug>.\WindowsAzurePowershell\src\Management.ServiceManagement.Test\bin\Debug\Microsoft.WindowsAzure.Management.ServiceManagement.Test.dll</ServiceManagementTestDebug>
<SqlDatabaseTestDebug>.\WindowsAzurePowershell\src\Management.SqlDatabase.Test\bin\Debug\Microsoft.WindowsAzure.Management.SqlDatabase.Test.dll</SqlDatabaseTestDebug>
<StoreTestDebug>.\WindowsAzurePowershell\src\Management.Store.Test\bin\Debug\Microsoft.WindowsAzure.Management.Store.Test.dll</StoreTestDebug>
<WebsitesTestDebug>.\WindowsAzurePowershell\src\Management.Websites.Test\bin\Debug\Microsoft.WindowsAzure.Management.Websites.Test.dll</WebsitesTestDebug>
<SetupDirectory>.\WindowsAzurePowershell\setup\build</SetupDirectory>
<PublishDirectory>.\Publish</PublishDirectory>
<BuildOutputDirectory>$(PublishDirectory)\Build</BuildOutputDirectory>
<SetupOutputDirectory>$(PublishDirectory)\Setup</SetupOutputDirectory>
<TestFilter>"!Functional&#x26;!Scenario"</TestFilter>
<ScenarioTestFilter>All</ScenarioTestFilter>
<TestOutputDirectory>$(PublishDirectory)\TestResults</TestOutputDirectory>
<DebugBuildConfig>Configuration=Debug;Platform=Any CPU</DebugBuildConfig>
<ReleaseBuildConfig>Configuration=Release;Platform=Any CPU</ReleaseBuildConfig>
<ReleaseSignedBuildConfig>Configuration=ReleaseSigned;Platform=Any CPU</ReleaseSignedBuildConfig>
</PropertyGroup>
<ItemGroup>
<CmdletSln Include=".\WindowsAzurePowershell\src\WindowsAzurePowershell.sln" />
<SetupSln Include=".\WindowsAzurePowershell\setup\azurepowershell.sln" />
</ItemGroup>
<!-- Clean the build in all configurations -->
<Target Name="Clean">
<!-- Clean the solutions -->
<Message Importance="high" Text="Cleaning Cmdlets..." ContinueOnError="false" />
<MSBuild
Projects="@(CmdletSln)"
Targets="Clean"
Properties="$(DebugBuildConfig)"
ContinueOnError="false" />
<MSBuild
Projects="@(CmdletSln)"
Targets="Clean"
Properties="$(ReleaseBuildConfig)"
ContinueOnError="false" />
<MSBuild
Projects="@(CmdletSln)"
Targets="Clean"
Properties="$(ReleaseSignedBuildConfig)"
ContinueOnError="false" />
<MSBuild
Projects="@(SetupSln)"
Targets="Clean"
Properties="$(ReleaseBuildConfig)"
ContinueOnError="false" />
<MSBuild
Projects="@(SetupSln)"
Targets="Clean"
Properties="$(DebugBuildConfig)"
ContinueOnError="false" />
<!-- Delete scaffolding files-->
<Message Importance="high" Text="Cleaning scaffolding files..." ContinueOnError="false" />
<ItemGroup>
<DebugScaffoldingFiles Include="$(DebugScaffoldingDir)\**\*.*" />
</ItemGroup>
<Delete
Files="@(DebugScaffoldingFiles)"
ContinueOnError="false" />
<ItemGroup>
<ReleaseScaffoldingFiles Include="$(ReleaseScaffoldingDir)\**\*.*" />
</ItemGroup>
<Delete
Files="@(ReleaseScaffoldingFiles)"
ContinueOnError="false" />
<RemoveDir Directories="$(ReleaseScaffoldingDir);$(DebugScaffoldingDir)" ContinueOnError="false"/>
<!-- Delete the publish files -->
<Message Importance="high" Text="Cleaning publish files..." ContinueOnError="false" />
<ItemGroup>
<PublishFiles Include="$(PublishDirectory)\**\*.*" />
</ItemGroup>
<Delete
Files="@(PublishFiles)"
ContinueOnError="false" />
<RemoveDir
Directories="$(PublishDirectory)"
ContinueOnError="false" />
</Target>
<!-- Build all flavors of the Cmdlets -->
<Target Name="BuildCmdlets">
<Message Importance="high" Text="Building Cmdlets..." />
<MSBuild
Projects="@(CmdletSln)"
Targets="Build"
Properties="$(DebugBuildConfig)"
ContinueOnError="false" />
<MSBuild
Projects="@(CmdletSln)"
Targets="Build"
Properties="$(ReleaseBuildConfig)"
ContinueOnError="false" />
<MSBuild
Projects="@(CmdletSln)"
Targets="Build"
Properties="$(ReleaseSignedBuildConfig)"
ContinueOnError="false" />
</Target>
<!-- Build the Setup -->
<Target Name="BuildSetupDebug">
<Message
Importance="high"
Text="Building Setup..."
ContinueOnError="false" />
<Message
Importance="high"
Text="You are required to have installed the WiX Toolset at http://wix.codeplex.com/releases/view/60102 (Wix35.msi)"
ContinueOnError="false" />
<MSBuild
Projects="@(SetupSln)"
Targets="Build"
Properties="$(DebugBuildConfig)"
ContinueOnError="false" />
</Target>
<!-- Build the Setup -->
<Target Name="BuildSetup">
<Message
Importance="high"
Text="Building Setup..."
ContinueOnError="false" />
<Message
Importance="high"
Text="You are required to have installed the WiX Toolset at http://wix.codeplex.com/releases/view/60102 (Wix35.msi)"
ContinueOnError="false" />
<MSBuild
Projects="@(SetupSln)"
Targets="Build"
Properties="$(ReleaseBuildConfig)"
ContinueOnError="false" />
</Target>
<!-- Build the Cmdlets and Setup in all configurations -->
<Target
Name="Build"
DependsOnTargets="BuildCmdlets;BuildSetup" />
<!-- Publish any build artificates to the Publish directory -->
<Target Name="Publish" DependsOnTargets="Build">
<!-- Copy code artifacts -->
<Message Importance="high" Text="Publishing Cmdlets..." ContinueOnError="false" />
<ItemGroup>
<DebugFiles Include="$(CloudServiceCmdletBinDirectory)\Debug\**\*.*" />
<DebugFiles Include="$(ManagementCmdletBinDirectory)\Debug\**\*.*" />
<ReleaseFiles Include="$(CloudServiceCmdletBinDirectory)\Release\**\*.*" />
<ReleaseFiles Include="$(ManagementCmdletBinDirectory)\Release\**\*.*" />
</ItemGroup>
<MakeDir
Directories="$(BuildOutputDirectory)"
ContinueOnError="false" />
<Copy
SourceFiles="@(DebugFiles)"
DestinationFiles="@(DebugFiles->'$(BuildOutputDirectory)\Debug\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true"
ContinueOnError="false" />
<Copy
SourceFiles="@(ReleaseFiles)"
DestinationFiles="@(ReleaseFiles->'$(BuildOutputDirectory)\Release\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true"
ContinueOnError="false" />
<!-- Copy the Setup artifacts -->
<Message Importance="high" Text="Publishing Setup..." ContinueOnError="false" />
<ItemGroup>
<SetupFiles Include="$(SetupDirectory)\**\*.*" />
</ItemGroup>
<Copy
SourceFiles="@(SetupFiles)"
DestinationFiles="@(SetupFiles->'$(PublishDirectory)\Setup\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true"
ContinueOnError="false" />
</Target>
<!-- Run the unit tests -->
<Target Name="Test" DependsOnTargets="BuildDebug;BuildReleaseSigned">
<Message Importance="high" Text="Running tests..." />
<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" />
<Message Importance="high" Text="Debug tests:" />
<Exec
Command="MSTest.exe /testcontainer:$(ManagementTestDebug) /testsettings:$(TestSettings) /category:$(TestFilter) /resultsfile:$(TestOutputDirectory)\ManagementDebug.trx"
ContinueOnError="false" />
<Exec
Command="MSTest.exe /testcontainer:$(CloudServiceTestDebug) /testsettings:$(TestSettings) /category:$(TestFilter) /resultsfile:$(TestOutputDirectory)\CloudServiceDebug.trx"
ContinueOnError="false" />
<Exec
Command="MSTest.exe /testcontainer:$(ServiceBusTestDebug) /testsettings:$(TestSettings) /category:$(TestFilter) /resultsfile:$(TestOutputDirectory)\ServiceBusDebug.trx"
ContinueOnError="false" />
<Exec
Command="MSTest.exe /testcontainer:$(ServiceManagementTestDebug) /testsettings:$(TestSettings) /category:$(TestFilter) /resultsfile:$(TestOutputDirectory)\ServiceManagementDebug.trx"
ContinueOnError="false" />
<Exec
Command="MSTest.exe /testcontainer:$(SqlDatabaseTestDebug) /testsettings:$(TestSettings) /category:$(TestFilter) /resultsfile:$(TestOutputDirectory)\SqlDatabaseDebug.trx"
ContinueOnError="false" />
<Exec
Command="MSTest.exe /testcontainer:$(StoreTestDebug) /testsettings:$(TestSettings) /category:$(TestFilter) /resultsfile:$(TestOutputDirectory)\StoreDebug.trx"
ContinueOnError="false" />
<Exec
Command="MSTest.exe /testcontainer:$(WebsitesTestDebug) /testsettings:$(TestSettings) /category:$(TestFilter) /resultsfile:$(TestOutputDirectory)\WebsitesDebug.trx"
ContinueOnError="false" />
</Target>
<!-- Run the scenario tests -->
<Target Name="ScenarioTest" DependsOnTargets="Clean;BuildDebug">
<Message Importance="high" Text="Running scenario tests..." />
<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" />
<Message Importance="high" Text="Scenario tests:" />
<Exec
Command="MSTest.exe /testcontainer:$(ScenarioTestDebug) /testsettings:$(ScenarioTestSettings) /category:$(ScenarioTestFilter) /resultsfile:$(TestOutputDirectory)\Debug.trx"
ContinueOnError="false" />
</Target>
<!-- Do everything possible -->
<Target
Name="Full"
DependsOnTargets="Clean;BuildDebug;BuildReleaseSigned;Test;BuildSetupDebug;BuildSetup" />
<!-- Build the Cmdlets in ReleaseSigned configuration -->
<Target Name="BuildReleaseSigned">
<Message Importance="high" Text="Building Cmdlets in ReleaseSigned config..." />
<MSBuild
Projects="@(CmdletSln)"
Targets="Build"
Properties="$(ReleaseSignedBuildConfig)"
ContinueOnError="false" />
<Message Importance="high" Text="Extracting Scaffolding from Resources..."/>
<CreateItem Include="$(ScaffoldingReleaseSourceDir)\**\*.*">
<Output TaskParameter="Include" ItemName="ReleaseResources" />
</CreateItem>
<Copy SourceFiles="@(ReleaseResources)"
DestinationFiles="@(ReleaseResources->'$(ScaffoldingReleaseDestinationDir)\%(RecursiveDir)%(Filename)%(Extension)')" />
<Message Importance="high" Text="Delete Release Resources folder..."/>
<Delete Files="@(ReleaseResources)" ContinueOnError="false" />
<RemoveDir Directories="$(ScaffoldingReleaseSourceDir)" ContinueOnError="false"/>
</Target>
<!-- Build the Cmdlets in Debug configuration -->
<Target Name="BuildDebug">
<Message Importance="high" Text="Building Cmdlets in Debug config..." />
<MSBuild
Projects="@(CmdletSln)"
Targets="Build"
Properties="$(DebugBuildConfig)"
ContinueOnError="false" />
<Message Importance="high" Text="Extracting Scaffolding from Resources..."/>
<CreateItem Include="$(ScaffoldingDebugSourceDir)\**\*.*">
<Output TaskParameter="Include" ItemName="DebugResources" />
</CreateItem>
<Copy SourceFiles="@(DebugResources)"
DestinationFiles="@(DebugResources->'$(ScaffoldingDebugDestinationDir)\%(RecursiveDir)%(Filename)%(Extension)')" />
<Message Importance="high" Text="Delete Debug Resources folder..."/>
<Delete Files="@(DebugResources)" ContinueOnError="false" />
<RemoveDir Directories="$(ScaffoldingDebugSourceDir)" ContinueOnError="false"/>
</Target>
</Project>
Jump to Line
Something went wrong with that request. Please try again.