forked from Azure/azure-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azd.wixproj
69 lines (69 loc) · 4.28 KB
/
azd.wixproj
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
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{4CE8736E-4168-48D3-BD64-E3C16DDCD16F}</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<Configuration Condition="'$(Configuration)'==''">Release</Configuration>
<Platform Condition="'$(Platform)' == ''">x64</Platform>
<ProductName Condition="'$(ProductName)' == ''">Azure Developer CLI (dev)</ProductName>
<ReleaseBuild Condition="'$(ProductVersion)' != ''">true</ReleaseBuild>
<ProductVersion Condition="'$(ProductVersion)' == ''">0.1.0</ProductVersion>
<!-- Windows Installer ProductVersion uses only major.minor.patch -->
<ProductVersion Condition="$(ProductVersion.IndexOf('-')) > 0">$(ProductVersion.Substring(0, $(ProductVersion.IndexOf('-'))))</ProductVersion>
<OutputType>package</OutputType>
<OutputNamePlatform>$(Platform)</OutputNamePlatform>
<OutputNamePlatform Condition="'$(Platform)' == 'x64'">amd64</OutputNamePlatform>
<OutputName Condition="'$(OutputName)' == ''">$(MSBuildProjectName)-windows-$(OutputNamePlatform)</OutputName>
<RepositoryPath>$([MSBuild]::NormalizeDirectory($(MSBuildProjectDirectory)\..\..\..))</RepositoryPath>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)</IntermediateOutputPath>
<DefineConstants>
$(DefineConstants);
ProductName=$(ProductName);
ProductVersion=$(ProductVersion);
ReleaseBuild=$(ReleaseBuild);
</DefineConstants>
<SuppressIces Condition="'$(Platform)' == 'arm' Or '$(Platform)' == 'arm64'">ICE39</SuppressIces>
<DefineSolutionProperties>false</DefineSolutionProperties>
<WixTargetsPath Condition="'$(WixTargetsPath)' == ''">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
</PropertyGroup>
<ItemGroup>
<!-- Build custom action(s) to bind into this package -->
<ProjectReference Include="..\windows-actions\actions.vcxproj"/>
</ItemGroup>
<ItemGroup>
<Compile Include="azd.wxs"/>
<Compile Include="ui.wxs"/>
</ItemGroup>
<ItemGroup>
<BindInputPaths Include="$(RepositoryPath)"/>
<BindInputPaths Include="$(RepositoryPath)\cli\azd"/>
<BindInputPaths Include="$(RepositoryPath)\cli\azd\build"/>
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUIExtension"/>
<WixExtension Include="WixUtilExtension"/>
</ItemGroup>
<Target Name="GetBindInputPaths" AfterTargets="ResolveProjectReferences">
<MSBuild Projects="@(ProjectReference)" Targets="GetNativeTargetPath">
<Output TaskParameter="TargetOutputs" ItemName="_NativeTargetPath"/>
</MSBuild>
<Message Importance="normal" Text="Adding native bind input paths: @(_NativeTargetPath->'%(RootDir)%(Directory)')"/>
<ItemGroup>
<BindInputPaths Include="@(_NativeTargetPath->'%(RootDir)%(Directory)')"/>
<Compile Include="@(_NativeTargetPath->'%(RootDir)%(Directory)actions.wxs')"/>
</ItemGroup>
</Target>
<Target Name="SetMsiOutputPath" AfterTargets="Build" Condition="'$(TF_BUILD)' != ''">
<!-- Make sure the correct target path is always set as the step output -->
<Message Importance="high" Text="##vso[task.setvariable variable=MsiOutputPath;isoutput=true]$(TargetPath)"/>
</Target>
<Import Project="$(WixTargetsPath)"/>
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
</Target>
<!-- Work around MSBuild regression: https://github.com/dotnet/msbuild/issues/8645 -->
<UsingTask TaskName="GenerateCompileWithObjectPath" AssemblyFile="$(WixTasksPath)" Override="true" Runtime="CLR2"/>
<UsingTask TaskName="ResolveWixReferences" AssemblyFile="$(WixTasksPath)" Override="true" Runtime="CLR2"/>
<UsingTask TaskName="WixAssignCulture" AssemblyFile="$(WixTasksPath)" Override="true" Runtime="CLR2"/>
</Project>