Skip to content

Commit

Permalink
fix version in dll
Browse files Browse the repository at this point in the history
  • Loading branch information
8LWXpg committed Dec 27, 2024
1 parent 98b7848 commit 4e93f89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Template.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<Nullable>enable</Nullable>
<AssemblyName>Community.PowerToys.Run.Plugin.$safeprojectname$</AssemblyName>
<RootNamespace>Community.PowerToys.Run.Plugin.$safeprojectname$</RootNamespace>
<Version>$([System.Text.RegularExpressions.Regex]::Match([System.IO.File]::ReadAllText('.\plugin.json'), '"Version": "(\S+)"').Groups[1].Value)</Version>
<PluginJson>$([System.IO.File]::ReadAllText('$(MSBuildProjectDirectory)/plugin.json'))</PluginJson>
<Version>$([System.Text.RegularExpressions.Regex]::Match($(PluginJson), '"Version": "(\S+)"').Groups[1].Value)</Version>
<Platforms>x64;ARM64</Platforms>
<Title>PowerToys Run $projectname$</Title>
<Product>PowerToys Run $projectname$ Plugin</Product>
Expand Down

0 comments on commit 4e93f89

Please sign in to comment.