forked from ClassIsland/ClassIsland
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGlobal.props
56 lines (53 loc) · 2.11 KB
/
Global.props
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
<Project>
<PropertyGroup>
<!-- we'll do our own versioning -->
<GitVersion>false</GitVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="GitInfo" Version="2.3.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<Compile Include="..\AssemblyInfo.cs">
<LinkBase>Properties</LinkBase>
</Compile>
</ItemGroup>
<!--<Target Name="PopulateInfo" DependsOnTargets="GitVersion" BeforeTargets="GetAssemblyVersion;GenerateNuspec;GetPackageContents">
<PropertyGroup>
<Version>$(GitBaseTag)</Version>
</PropertyGroup>
</Target>-->
<PropertyGroup Condition="'$(Configuration)'=='Debug_MSIX'">
<DefineConstants>$(DefineConstants);TRACE;DEBUG</DefineConstants>
<IsMsix>true</IsMsix>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release_MSIX'">
<IsMsix>true</IsMsix>
</PropertyGroup>
<PropertyGroup Condition="'$(ClassIsland_PlatformTarget)'=='x64'">
<DefineConstants>$(DefineConstants);PLATFORM_x64</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(ClassIsland_PlatformTarget)'=='x86'">
<DefineConstants>$(DefineConstants);PLATFORM_x86</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(ClassIsland_PlatformTarget)'=='arm64'">
<DefineConstants>$(DefineConstants);PLATFORM_ARM64</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(ClassIsland_PlatformTarget)'=='arm'">
<DefineConstants>$(DefineConstants);PLATFORM_ARM</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(ClassIsland_PlatformTarget)'=='Any CPU'">
<DefineConstants>$(DefineConstants);PLATFORM_Any</DefineConstants>
</PropertyGroup>
<!-- <PropertyGroup Condition="'$(IsMsix)'=='true'">
<Platform>AnyCPU</Platform>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<Target Name="OverrideProperties" BeforeTargets="PrepareForBuild" Condition="'$(IsMsix)'=='true'">
<Message Text="Overriding properties for MSIX build" Importance="high" />
<PropertyGroup>
<RuntimeIdentifier></RuntimeIdentifier>
</PropertyGroup>
</Target> -->
</Project>