-
Notifications
You must be signed in to change notification settings - Fork 537
Expand file tree
/
Copy pathGrand.Common.props
More file actions
48 lines (46 loc) · 2.11 KB
/
Grand.Common.props
File metadata and controls
48 lines (46 loc) · 2.11 KB
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<Product>grandnode</Product>
<PackageProjectUrl>https://grandnode.com/</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/grandnode/grandnode2/blob/main/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://github.com/grandnode/grandnode2</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup>
<Using Include="System.Text"/>
</ItemGroup>
<Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation"
Condition="'$(SourceRevisionId)'=='' And Exists('$(MSBuildProjectDirectory)\.git')">
<Exec Command="git describe --long --always --exclude=* --abbrev=8" ConsoleToMSBuild="True"
IgnoreExitCode="True">
<Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput"/>
</Exec>
</Target>
<Target Name="SetRepositoryBranch" BeforeTargets="InitializeSourceControlInformation"
Condition="'$(GitBranch)'=='' And Exists('$(MSBuildProjectDirectory)\.git')">
<Exec Command="git rev-parse --abbrev-ref HEAD" ConsoleToMSBuild="True" IgnoreExitCode="True">
<Output PropertyName="branch" TaskParameter="ConsoleOutput"/>
</Exec>
<ItemGroup>
<AssemblyMetadata Include="GitBranch" Value="$(branch)"/>
</ItemGroup>
</Target>
<ItemGroup Condition="'$(GitBranch)'!=''">
<AssemblyMetadata Include="GitBranch" Value="$(GitBranch)"/>
</ItemGroup>
<Target Name="SetVersion" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<Version>2.4.0</Version>
</PropertyGroup>
</Target>
</Project>