-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommonProperties.targets
More file actions
103 lines (93 loc) · 3.32 KB
/
CommonProperties.targets
File metadata and controls
103 lines (93 loc) · 3.32 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<Project>
<PropertyGroup>
<SolutionDir Condition=" '$(SolutionDir)' == '' ">$(MSBuildThisFileDirectory)</SolutionDir>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<Authors>Hossein Esmati</Authors>
<Company>desmati.com</Company>
<RepositoryUrl>https://github.com/desmati/StoneKit</RepositoryUrl>
<PackageIconUrl>https://gravatar.com/avatar/8b4129dc040fc60683eb3f1f7ea1931f754f3c71289f8fbe8b2d98c943a694dc</PackageIconUrl>
<Copyright>https://github.com/desmati/StoneKit/blob/master/LICENSE</Copyright>
<PackageProjectUrl>http://desmati.com/</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<IncludeSymbols>false</IncludeSymbols>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageIcon>logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageOutputPath>$(SolutionDir)Assets\Packages\$(AssemblyName)</PackageOutputPath>
</PropertyGroup>
<PropertyGroup>
<GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);SetPackageVersion</GenerateNuspecDependsOn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<Deterministic>true</Deterministic>
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
<DebugType>none</DebugType>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!--<Target Name="SetPackageVersion" DependsOnTargets="Build">
<PropertyGroup>
<PackageVersion>$([System.DateTime]::Now.ToString("1.yy.MMdd.HHmmss"))</PackageVersion>
<AssemblyVersion>$([System.DateTime]::Now.ToString("1.yy.MMdd.HHmmss"))</AssemblyVersion>
<Version>$([System.DateTime]::Now.ToString("1.yy.MMdd.HHmmss"))</Version>
<FileVersion>$([System.DateTime]::Now.ToString("1.yy.MMdd.HHmmss"))</FileVersion>
</PropertyGroup>
</Target>-->
<Target Name="SetPackageVersion" DependsOnTargets="Build">
<PropertyGroup>
<FinalResult>
$([MSBuild]::Add(
$([MSBuild]::Multiply(
$([MSBuild]::Subtract(
$([MSBuild]::Add(
$([MSBuild]::Multiply(
$([MSBuild]::Subtract($([System.DateTime]::UtcNow.Month), 1)),
31
)),
$([System.DateTime]::UtcNow.Day)
)),
1)
),
1380)
),
$([MSBuild]::Add(
$([MSBuild]::Multiply(
$([MSBuild]::Subtract($([System.DateTime]::UtcNow.Hour), 1)),
60)
),
$([System.DateTime]::UtcNow.Minute)
))
))
</FinalResult>
<PackageVersionInfo>2024.1.1.$(FinalResult)</PackageVersionInfo>
<PackageVersion>$(PackageVersionInfo)</PackageVersion>
<AssemblyVersion>$(PackageVersionInfo)</AssemblyVersion>
<Version>$(PackageVersionInfo)</Version>
<FileVersion>$(PackageVersionInfo)</FileVersion>
</PropertyGroup>
</Target>
<ItemGroup>
<None Include="$(SolutionDir)Assets\logo.png" Link="logo.png">
<PackagePath>\</PackagePath>
<Pack>True</Pack>
</None>
<None Include="$(SolutionDir)LICENSE" Link="LICENSE">
<PackagePath>\</PackagePath>
<Pack>True</Pack>
</None>
<None Update="README.md">
<PackagePath>\</PackagePath>
<Pack>True</Pack>
</None>
</ItemGroup>
</Project>