-
Notifications
You must be signed in to change notification settings - Fork 4
/
AzurePackageDash.proj
59 lines (57 loc) · 3.49 KB
/
AzurePackageDash.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
Aggregation build project to create Azure deployment packages for Gateway service.
Also writes the required package.manifest to upload to the Update Service's storage account.
-->
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildProjectDirectory)</SolutionDir>
<OutDir Condition="'$(OutDir)' == ''">$(SolutionDir)\bin\</OutDir>
<PackageRoot Condition="'$(PackageRoot)' == ''">$(OutDir)Package\</PackageRoot>
<CloudServiceDir Condition="'$(CloudServiceDir)' == ''">DashServer.Azure</CloudServiceDir>
<CloudServiceILBDir Condition="'$(CloudServiceILBDir)' == ''">DashServer.Azure.ILB</CloudServiceILBDir>
<CloudServiceHttpsDir Condition="'$(CloudServiceHttpsDir)' == ''">DashServer.Azure.Https</CloudServiceHttpsDir>
<CloudServiceHttpsILBDir Condition="'$(CloudServiceHttpsILBDir)' == ''">DashServer.Azure.Https.ILB</CloudServiceHttpsILBDir>
</PropertyGroup>
<Import Project=".\.build\PackageVersion.targets" />
<Target Name="Build" DependsOnTargets="GetPackageVersion">
<MakeDir Directories="$(PackageRoot)" />
<Message Text="Writing Azure packages to: $(PackageRoot))" />
<!-- Emit the package manifest file -->
<WriteLinesToFile File="$(PackageRoot)package.manifest" Overwrite="true"
Lines="
{
'Version' : '$(PackageVersion)',
'Description' : '',
'Severity' : 'Important',
'Disabled' : 'true',
'AvailablePackages' : [
{
'PackageName' : 'HTTP',
'Description' : 'Dash Server with no HTTPS',
'StorageFileNames' : ['$(CloudServiceDir)/DashServer.Azure.cspkg', '$(CloudServiceDir)/ServiceConfiguration.Publish.cscfg']
},
{
'PackageName' : 'HTTP.ILB',
'Description' : 'Dash Server with Internal Load Balancer and no HTTPS',
'StorageFileNames' : ['$(CloudServiceILBDir)/DashServer.Azure.cspkg', '$(CloudServiceILBDir)/ServiceConfiguration.Publish.ILB.cscfg']
},
{
'PackageName' : 'HTTPS',
'Description' : 'Dash Server with HTTPS',
'StorageFileNames' : ['$(CloudServiceHttpsDir)/DashServer.Azure.Https.cspkg', '$(CloudServiceHttpsDir)/ServiceConfiguration.PublishHttps.cscfg']
},
{
'PackageName' : 'HTTPS.ILB',
'Description' : 'Dash Server with Internal Load Balancer and HTTPS',
'StorageFileNames' : ['$(CloudServiceHttpsILBDir)/DashServer.Azure.Https.cspkg', '$(CloudServiceHttpsILBDir)/ServiceConfiguration.PublishHttps.ILB.cscfg']
}
]
}" />
<MSBuild Projects="DashServer.Azure\DashServer.Azure.ccproj" Targets="Publish" Properties="Configuration=Release;TargetProfile=Publish;PublishDir=$(PackageRoot)$(CloudServiceDir)/;" />
<MSBuild Projects="DashServer.Azure\DashServer.Azure.ccproj" Targets="Publish" Properties="Configuration=Release;TargetProfile=Publish.ILB;PublishDir=$(PackageRoot)$(CloudServiceILBDir)/;" />
<MSBuild Projects="DashServer.Azure.Https\DashServer.Azure.Https.ccproj" Targets="Publish" Properties="Configuration=Release;TargetProfile=PublishHttps;PublishDir=$(PackageRoot)$(CloudServiceHttpsDir)/;" />
<MSBuild Projects="DashServer.Azure.Https\DashServer.Azure.Https.ccproj" Targets="Publish" Properties="Configuration=Release;TargetProfile=PublishHttps.ILB;PublishDir=$(PackageRoot)$(CloudServiceHttpsILBDir)/;" />
</Target>
</Project>