blob: 16e9f80ce6cc0cc1472b916c2688b91a38559db1 (
plain)
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
|
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
<Project>
<PropertyGroup>
<PrepareForBuildDependsOn>
$(PrepareForBuildDependsOn);
__SetVersionResource
</PrepareForBuildDependsOn>
</PropertyGroup>
<Target Name="__SetVersionResource" DependsOnTargets="__SetPropertiesFromGit"
Condition=" '$(ConfigurationType)'=='Application' or '$(ConfigurationType)'=='DynamicLibrary' ">
<PropertyGroup>
<_ResourceFileType Condition=" '$(ConfigurationType)'=='Application' ">VFT_APP</_ResourceFileType>
<_ResourceFileType Condition=" '$(ConfigurationType)'=='DynamicLibrary' ">VFT_DLL</_ResourceFileType>
<Description Condition=" '$(Description)'=='' ">$(TargetName)</Description>
<Title Condition=" '$(Title)'=='' ">$(Description)</Title>
</PropertyGroup>
<ItemGroup>
<ResourceCompile Include="$(MSBuildThisFileDirectory)ver.rc">
<PreprocessorDefinitions>
%(PreprocessorDefinitions);
GITVER_FILEVER=$(FileVersion.Replace('.', ','));
GITVER_PRODUCTVER=$(AssemblyVersion.Replace('.', ','));
GITVER_FILE_VERSION=$(FileVersion);
GITVER_PRODUCT_VERSION=$(AssemblyVersion);
GITVER_FILE_TYPE=$(_ResourceFileType);
GITVER_CODEPAGE=0;
GITVER_LCID=$([System.Convert]::ToInt32('%(Culture)', 16));
GITVER_VERSION_BLOCK=$([System.Convert]::ToString($([MSBuild]::Multiply($([System.Convert]::ToUint64('%(Culture)', 16)), 65536)), 16).PadLeft(8, '0'));
GITVER_COMPANY=$(Company);
GITVER_COPYRIGHT=$(Copyright);
GITVER_TITLE=$(Title);
GITVER_PRODUCT=$(Product);
GITVER_INFORMATIONAL_VERSION=$(InformationalVersion);
GITVER_INTERNAL_NAME=$(TargetName);
GITVER_FILE_NAME=$(TargetFileName);
</PreprocessorDefinitions>
</ResourceCompile>
</ItemGroup>
</Target>
<PropertyGroup>
<AfterLinkTargets>
$(AfterLinkTargets);
PublicizeNativePdb;
</AfterLinkTargets>
</PropertyGroup>
<Target Name="PublicizeNativePdb"
Condition=" '@(Link)' != '' and '$(IsWixTestSupportProject)' != 'true' and '$(IsWixTestProject)' != 'true' and '$(IsWixSampleProject)' != 'true' ">
<Copy SourceFiles="%(Link.ProgramDatabaseFile)" DestinationFolder="$(PdbsFolder)$(PlatformFolder)" />
</Target>
</Project>
|