|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" |
3 |
| - xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
4 |
| - <Import Project="..\Directory.Build.props" /> |
| 1 | +<Project Sdk="WixToolset.Sdk/4.0.0-rc.3"> |
5 | 2 | <PropertyGroup>
|
6 |
| - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
7 |
| - <Platform Condition=" '$(Platform)' == '' ">x86</Platform> |
8 |
| - <ProductVersion>3.10</ProductVersion> |
9 |
| - <ProjectGuid>38a42f6d-a417-45b0-8ec8-a700f31cbe26</ProjectGuid> |
10 |
| - <SchemaVersion>2.0</SchemaVersion> |
11 | 3 | <OutputName>PabloDraw-Windows-x64</OutputName>
|
12 |
| - <OutputType>Package</OutputType> |
13 |
| - <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath> |
14 |
| - <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath> |
15 | 4 | <DefineConstants>PublishDir=$(PublishDir)</DefineConstants>
|
16 | 5 | <IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
|
17 | 6 | <OutputPath>$(ArtifactsDir)installer\$(Configuration)\$(BuildTarget)\</OutputPath>
|
18 | 7 | <PublishReferences Condition="$(PublishReferences) == ''">True</PublishReferences>
|
19 | 8 | </PropertyGroup>
|
20 |
| - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> |
21 |
| - <DefineConstants>$(DefineConstants);Debug</DefineConstants> |
22 |
| - </PropertyGroup> |
23 |
| - <ItemGroup> |
24 |
| - <Compile Include="Product.wxs" /> |
25 |
| - </ItemGroup> |
26 | 9 | <ItemGroup>
|
27 | 10 | <ProjectReference Include="..\PabloDraw\PabloDraw.csproj">
|
28 | 11 | <Name>PabloDraw</Name>
|
|
39 | 22 | <IsDotnetSDKProject>True</IsDotnetSDKProject>
|
40 | 23 | </ProjectReference>
|
41 | 24 | </ItemGroup>
|
42 |
| - |
43 |
| - <Import Project="$(WixTargetsPath)" /> |
44 |
| - <Import Project="..\Directory.Build.targets" /> |
45 |
| - <Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' "> |
46 |
| - <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/" /> |
47 |
| - </Target> |
48 |
| - |
49 | 25 | <Target Name="SetAssemblyVersion" BeforeTargets="BeforeBuild">
|
50 |
| - <Message Importance="high" Text="Building Version: $(AssemblyVersion)" /> |
51 | 26 | <PropertyGroup>
|
52 |
| - <DefineConstants>$(DefineConstants);Version=$(AssemblyVersion)</DefineConstants> |
| 27 | + <ProductVersion Condition="$(ProductVersion) == ''">$(AssemblyVersion)</ProductVersion> |
| 28 | + <ProductVersion Condition="$(ProductVersion) == ''">$(Version)</ProductVersion> |
| 29 | + <ProductVersion Condition="$(ProductVersion.IndexOf('-')) > 0">$(ProductVersion.Substring(0, $(ProductVersion.IndexOf('-'))))</ProductVersion> |
| 30 | + <DefineConstants>$(DefineConstants);Version=$(ProductVersion)</DefineConstants> |
53 | 31 | </PropertyGroup>
|
| 32 | + <Message Importance="high" Text="Building Version: $(ProductVersion)" /> |
54 | 33 | </Target>
|
55 |
| - |
56 |
| - <Target Name="BeforeBuild" Condition="$(PublishReferences) == 'True'"> |
| 34 | + <Target Name="PublishPabloDraw" BeforeTargets="BeforeBuild" Condition="$(PublishReferences) == 'True'"> |
57 | 35 | <Exec WorkingDirectory="%(ProjectReference.RootDir)%(ProjectReference.Directory)" Command="dotnet publish -c $(Configuration)" Condition="'%(ProjectReference.IsDotnetSDKProject)' == 'True'" />
|
58 | 36 | <!-- <ItemGroup>
|
59 | 37 | <LinkerBindInputPaths Include="%(ProjectReference.PublishDir)" />
|
|
0 commit comments