main
wixproj 52 lines 2.25 KB
Raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <Import Project="$(WixMSBuildProps)" />
4 <PropertyGroup>
5 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6 <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
7 </PropertyGroup>
8
9 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
10 <PlatformName>$(Platform)</PlatformName>
11 <OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
12 <DefineConstants>Debug</DefineConstants>
13 </PropertyGroup>
14 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
15 <PlatformName>$(Platform)</PlatformName>
16 <OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
17 </PropertyGroup>
18 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
19 <PlatformName>$(Platform)</PlatformName>
20 <OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
21 <DefineConstants>Debug</DefineConstants>
22 </PropertyGroup>
23 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
24 <PlatformName>$(Platform)</PlatformName>
25 <OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
26 </PropertyGroup>
27
28 <ItemGroup>
29 <BindPath Include="data" />
30 </ItemGroup>
31
32 <Import Project="$(WixTargetsPath)" />
33
34 <Target Name="SignCabs">
35 <!-- It would be cool to actually sign, but signtool.exe is not always easy to find, so we'll
36 mock it up instead.
37 <Error Text="Could not find pfx at: $(TestCertificate)" Condition=" !Exists('$(TestCertificate)') " />
38 <Exec Command='signtool.exe sign /v /f $(TestCertificate) /p password %(SignCabs.FullPath)' />
39 -->
40 <Message Importance="high" Text="TEST: SignCabs: @(SignCabs)" />
41 </Target>
42
43 <Target Name="SignMsi">
44 <!-- It would be cool to actually sign, but signtool.exe is not always easy to find, so we'll
45 mock it up instead.
46 <Error Text="Could not find pfx at: $(TestCertificate)" Condition=" !Exists('$(TestCertificate)') " />
47 <Exec Command='signtool.exe sign /v /f $(TestCertificate) /p password "%(SignMsi.FullPath)" ' />
48 -->
49 <Message Importance="high" Text="TEST: SignMsi: @(SignMsi)" />
50 </Target>
51
52 </Project>