Skip to content

Commit 4583679

Browse files
committed
add version to metadata
1 parent 8ceb73e commit 4583679

4 files changed

+9
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -330,3 +330,4 @@ ASALocalRun/
330330
.mfractor/
331331
/*.qlplugin
332332
/GitVersion.cs
333+
/QuickLook.Plugin.Metadata.config

QuickLook.Plugin.HelloWorld.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
</ProjectReference>
7979
</ItemGroup>
8080
<ItemGroup>
81+
<None Include="QuickLook.Plugin.Metadata.Base.config" />
8182
<None Include="QuickLook.Plugin.Metadata.config">
8283
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
8384
</None>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<Metadata>
43
<Namespace>QuickLook.Plugin.HelloWorld</Namespace>
4+
<Version>0</Version>
55
<Description>This plugin does nothing at all.</Description>
66
</Metadata>

Scripts/update-version.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ using System.Reflection;
1010
[assembly: AssemblyInformationalVersion("$revision")]
1111
"@
1212

13-
$text | Out-File $PSScriptRoot\..\GitVersion.cs -Encoding utf8
13+
$text | Out-File $PSScriptRoot\..\GitVersion.cs -Encoding utf8
14+
15+
16+
$xml = [xml](Get-Content $PSScriptRoot\..\QuickLook.Plugin.Metadata.Base.config)
17+
$xml.Metadata.Version="$revision"
18+
$xml.Save("$PSScriptRoot\..\QuickLook.Plugin.Metadata.config")

0 commit comments

Comments
 (0)