Skip to content

Commit 97bc669

Browse files
committed
fix: Fix version returned when getting plugin info.
Use FileBuildPart: https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.fileversioninfo?view=net-5.0
1 parent 3ab3f90 commit 97bc669

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DprintPluginRoslyn/DprintPluginRoslyn.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RootNamespace>Dprint.Plugins.Roslyn</RootNamespace>
77
<AssemblyName>dprint-plugin-roslyn</AssemblyName>
88
<Nullable>enable</Nullable>
9-
<Version>0.2.1</Version>
9+
<Version>0.2.2</Version>
1010
<Authors>David Sherret</Authors>
1111
<Company>Dprint Code Formatting</Company>
1212
</PropertyGroup>

DprintPluginRoslyn/MessageProcessor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private static string GetAssemblyVersion()
170170
{
171171
var assembly = Assembly.GetExecutingAssembly();
172172
var fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);
173-
return $"{fileVersionInfo.FileMajorPart}.{fileVersionInfo.FileMinorPart}.{fileVersionInfo.FilePrivatePart}";
173+
return $"{fileVersionInfo.FileMajorPart}.{fileVersionInfo.FileMinorPart}.{fileVersionInfo.FileBuildPart}";
174174
}
175175

176176
private static string ReadLicenseText()

0 commit comments

Comments
 (0)