forked from AscensionGameDev/Intersect-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIntersect.props
81 lines (76 loc) · 3.97 KB
/
Intersect.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<Project>
<PropertyGroup Label="Package Properties">
<Authors>Ascension Game Development</Authors>
<Copyright>Copyright (c) 2022-2025 Ascension Game Dev</Copyright>
<Description>Intersect 2D Game Creation Suite</Description>
<PackageIcon>$(IntersectRepoPath)\assets\intersect-logo-qu.png</PackageIcon>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<Product>Intersect Game Engine</Product>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/AscensionGameDev/Intersect-Engine</RepositoryUrl>
<Version>0.8.0.0</Version>
</PropertyGroup>
<PropertyGroup Label="Assembly Properties">
<ApplicationIcon>$(IntersectRepoPath)\assets\intersect-logo-qu.ico</ApplicationIcon>
<AssemblyVersion>$(Version)</AssemblyVersion>
<DebugSymbols>true</DebugSymbols>
<DebugType>embedded</DebugType>
<FileVersion>$(Version)</FileVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NeutralLanguage>en-US</NeutralLanguage>
<NoWarn>$(NoWarn);CS1591;CS8632</NoWarn>
<PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>True</ProduceReferenceAssembly>
</PropertyGroup>
<PropertyGroup Label="Embedded Assembly Metadata Properties">
<VersionNameSuffix Condition="'$(VersionNameSuffix)' == ''">custom</VersionNameSuffix>
</PropertyGroup>
<ItemGroup Label="Embedded Resources">
<None Include="$(IntersectRepoPath)\assets\intersect-logo-qu.png" Pack="true" PackagePath="\" />
<EmbeddedResource Include="$(IntersectRepoPath)\assets\intersect-logo-qu.ico" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup Label="Embedded Assembly Metadata">
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>BuildNumber</_Parameter1>
<_Parameter2>$(BuildNumber)</_Parameter2>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(CommitSha)' != ''">
<_Parameter1>CommitSha</_Parameter1>
<_Parameter2>$(CommitSha)</_Parameter2>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>VersionNameSuffix</_Parameter1>
<_Parameter2>$(VersionNameSuffix)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
<Target Name="GetGitCommit" Condition="'$(CommitSha)' == ''" BeforeTargets="GetAssemblyAttributes">
<Exec Command="git --version" IgnoreExitCode="true">
<Output TaskParameter="ExitCode" PropertyName="GitVersionExitCode" />
</Exec>
<Exec Condition="'$(GitVersionExitCode)' == '0'" Command="git diff-index --quiet HEAD --" IgnoreExitCode="true">
<Output TaskParameter="ExitCode" PropertyName="DiffIndexExitCode" />
</Exec>
<Exec Condition="'$(GitVersionExitCode)' == '0'" Command="git rev-parse --verify HEAD" ConsoleToMsBuild="true" IgnoreExitCode="true">
<Output TaskParameter="ConsoleOutput" PropertyName="RevParseOutput" />
<Output TaskParameter="ExitCode" PropertyName="RevParseExitCode" />
</Exec>
<PropertyGroup>
<RevParseOutput Condition="'$(RevParseExitCode)' == ''">unknowncommit</RevParseOutput>
<_GitCommitSha>$(RevParseOutput)</_GitCommitSha>
<_GitCommitShaSuffix>dirty</_GitCommitShaSuffix>
<_GitCommitShaSuffix Condition="'$(DiffIndexExitCode)' == ''">gitnotfound</_GitCommitShaSuffix>
<_GitCommitSha Condition="'$(DiffIndexExitCode)' != '0'">$(_GitCommitSha)-$(_GitCommitShaSuffix)</_GitCommitSha>
<CommitSha Condition="'$(CommitSha)' == ''">$(_GitCommitSha)</CommitSha>
</PropertyGroup>
<CreateProperty Value="$(CommitSha)">
<Output TaskParameter="Value" PropertyName="CommitSha" />
</CreateProperty>
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>CommitSha</_Parameter1>
<_Parameter2>$(CommitSha)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
<Message Importance="high" Text="CommitSha=$(CommitSha)"/>
</Target>
</Project>