-
Notifications
You must be signed in to change notification settings - Fork 69
/
Directory.Build.props
47 lines (38 loc) · 2.53 KB
/
Directory.Build.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
<Project>
<!-- $(PeachpieVersion) property from the current Peachpie.NET.Sdk -->
<Import Project="Version.props" Sdk="Peachpie.NET.Sdk" Condition=" '$(PeachpieVersion)'=='' " />
<PropertyGroup>
<LangVersion>latest</LangVersion>
<!-- common version -->
<VersionFileContent>$([System.IO.File]::ReadAllText($(MSBuildThisFileDirectory)wordpress/wp-includes/version.php) )</VersionFileContent>
<VersionPrefix Condition=" '$(VersionPrefix)'=='' ">$([System.Text.RegularExpressions.Regex]::Match($(VersionFileContent), "\$wp_version\s*=\s*'([0-9\.]+)';").Groups.get_Item(1) )</VersionPrefix>
<VersionSuffix Condition=" '$(VersionSuffix)'=='' ">rc-020</VersionSuffix>
<!--PeachpieVersion> specified in global.json </PeachpieVersion-->
<!-- metadata generation -->
<GenerateAssemblyVersionAttribute>true</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>true</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateNeutralResourcesLanguageAttribute>true</GenerateNeutralResourcesLanguageAttribute>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- signing -->
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)key.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<!-- package -->
<PropertyGroup>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/iolevel/wpdotnet-sdk</RepositoryUrl>
<PackageProjectUrl>https://github.com/iolevel/wpdotnet-sdk</PackageProjectUrl>
<PackageOutputPath Condition=" '$(PackageOutputPath)'=='' ">$(MSBuildThisFileDirectory)artifacts</PackageOutputPath>
<PackageIconPath Condition=" '$(PackageIconPath)'=='' ">$(MSBuildThisFileDirectory)wpdotnet.png</PackageIconPath>
<PackageIcon>assets/$([System.IO.Path]::GetFileName("$(PackageIconPath)"))</PackageIcon>
<PackageReadmePath>$(MSBuildProjectDirectory)/readme.md</PackageReadmePath>
<PackageReadme>assets/$([System.IO.Path]::GetFileName("$(PackageReadmePath)"))</PackageReadme>
<PackageLicenseExpression>GPL-2.0-or-later</PackageLicenseExpression >
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Authors>wordpress.org, iolevel</Authors>
</PropertyGroup>
</Project>