Skip to content

Commit

Permalink
Remove revision
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed Nov 21, 2023
1 parent 0126ac6 commit 9e2e9a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Installer/Installer.Tools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using WixSharp.CommonTasks;

namespace Installer;

Expand All @@ -39,10 +40,11 @@ public static Versions ComputeVersions(string[] args)
{
foreach (var directory in args)
{
var assemblies = Directory.GetFiles(directory, @"RevitLookup.dll", SearchOption.AllDirectories);
var assemblies = Directory.GetFiles(directory, "RevitLookup.dll", SearchOption.AllDirectories);
if (assemblies.Length == 0) continue;

var version = new Version(FileVersionInfo.GetVersionInfo(assemblies[0]).FileVersion);
var projectAssembly = FileVersionInfo.GetVersionInfo(assemblies[0]);
var version = new Version(projectAssembly.FileVersion).ClearRevision();
return new Versions
{
AssemblyVersion = version,
Expand Down

0 comments on commit 9e2e9a2

Please sign in to comment.