62 lines
3.4 KiB
XML
62 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
|
<ProductVersion>3.10</ProductVersion>
|
|
<ProjectGuid>11f40f86-5df6-4279-bdf3-17ad8b93ae7c</ProjectGuid>
|
|
<SchemaVersion>2.0</SchemaVersion>
|
|
<OutputName>SetupVS19</OutputName>
|
|
<OutputType>Package</OutputType>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
|
<OutputPath>bin\$(Configuration)\</OutputPath>
|
|
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
|
|
<DefineConstants>Debug</DefineConstants>
|
|
<LinkerAdditionalOptions>-b "$(SolutionDir)taskFLOW\bin\$(Configuration)"</LinkerAdditionalOptions>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
|
<OutputPath>bin\$(Configuration)\</OutputPath>
|
|
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
|
|
<LinkerAdditionalOptions>-b "$(SolutionDir)taskFLOW\bin\$(Configuration)"</LinkerAdditionalOptions>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Compile Include="Product.wxs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="Config.wxi" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<WixExtension Include="WixUtilExtension">
|
|
<HintPath>C:\Program Files (x86)\WiX Toolset v3.14\bin\WixUtilExtension.dll</HintPath>
|
|
<Name>WixUtilExtension</Name>
|
|
</WixExtension>
|
|
<WixExtension Include="WixUIExtension">
|
|
<HintPath>C:\Program Files (x86)\WiX Toolset v3.14\bin\WixUIExtension.dll</HintPath>
|
|
<Name>WixUIExtension</Name>
|
|
</WixExtension>
|
|
</ItemGroup>
|
|
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
|
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
|
|
<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>
|
|
<Target Name="BeforeBuild">
|
|
<!-- Get the programs assembly version from the .exe file -->
|
|
<GetAssemblyIdentity AssemblyFiles="..\taskFLOW\bin\$(Configuration)\TaskFlow.exe">
|
|
<Output TaskParameter="Assemblies" ItemName="AsmInfo" />
|
|
</GetAssemblyIdentity>
|
|
<!-- Store the assembly version number in ProductVersion preprocessor variable -->
|
|
<CreateProperty Value="$(DefineConstants);ProductVersion=%(AsmInfo.Version)">
|
|
<Output TaskParameter="Value" PropertyName="DefineConstants" />
|
|
</CreateProperty>
|
|
<!-- Name the .msi file after the solution platform and assembly version e.g TestService-x86-1.4.0.0.msi -->
|
|
<CreateProperty Value="$(SolutionName)-$(Platform)-%(AsmInfo.Version)">
|
|
<Output TaskParameter="Value" PropertyName="TargetName" />
|
|
</CreateProperty>
|
|
<!-- Name the .wixpdb file after the solution platform and assembly version e.g TestService-x86-1.4.0.0.msi -->
|
|
<CreateProperty Value="$(TargetName)$(TargetPdbExt)">
|
|
<Output TaskParameter="Value" PropertyName="TargetPdbName" />
|
|
</CreateProperty>
|
|
</Target>
|
|
</Project> |