-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.Build.props
43 lines (40 loc) · 2.68 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
<Project>
<!-- Build Settings -->
<PropertyGroup>
<BuildInParallel>true</BuildInParallel>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PackageOutputPath>$(MSBuildThisFileDirectory)dist</PackageOutputPath>
</PropertyGroup>
<!-- Package Properties -->
<PropertyGroup>
<PackageId>SilkyFowl.$(MSBuildProjectName)</PackageId>
<Title>SilkyFowl.$(MSBuildProjectName)</Title>
<Product>SilkyFowl.$(MSBuildProjectName)</Product>
<Description>Live fs/fsx previewer for Avalonia.FuncUI.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Authors>SilkyFowl</Authors>
<Copyright>Copyright (c) 2022 SilkyFowl</Copyright>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageProjectUrl>https://github.com/SilkyFowl/Avalonia.FuncUI.LiveView</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<RepositoryUrl>https://github.com/SilkyFowl/Avalonia.FuncUI.LiveView.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<!-- Read RELEASE_NOTES.md. -->
<_ReleaseNotesContent>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)RELEASE_NOTES.md"))</_ReleaseNotesContent>
<_LastestReleaseNoteContent>$([System.Text.RegularExpressions.Regex]::Split($(_ReleaseNotesContent), "\n### \d+-?(\w+\d+)?")[0])</_LastestReleaseNoteContent>
<_Pattern>([\d+\.]+\d+)-?(\w+\d+)?(?:\r?\n){2}((?:[^\n]+\n)+)</_Pattern>
<_VersionPrefixString>$([System.Text.RegularExpressions.Regex]::Match( $(_LastestReleaseNoteContent), $(_Pattern)).Groups[1].Value)</_VersionPrefixString>
<_VersionSuffixString>$([System.Text.RegularExpressions.Regex]::Match( $(_LastestReleaseNoteContent), $(_Pattern)).Groups[2].Value)</_VersionSuffixString>
<!-- version from RELEASE_NOTES.md. -->
<VersionPrefix Condition="$(_VersionPrefixString) != ''" >$(_VersionPrefixString)</VersionPrefix>
<VersionSuffix Condition="$(_VersionSuffixString) != ''" >$(_VersionSuffixString)</VersionSuffix>
<!-- releaseNotes from RELEASE_NOTES.md. -->
<PackageReleaseNotes>$([System.Text.RegularExpressions.Regex]::Match( $(_LastestReleaseNoteContent), $(_Pattern)).Groups[3].Value)</PackageReleaseNotes>
</PropertyGroup>
<!-- Package assets -->
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)LICENSE.md" Pack="true" PackagePath=""/>
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath=""/>
<None Include="$(MSBuildThisFileDirectory)github\img\README\*.png" Pack="true" PackagePath="github\img\README"/>
</ItemGroup>
</Project>