diff --git a/.gitignore b/.gitignore index b99ed157..2696cebc 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ Thumbs.db *.orig packages/ FeedBuilder/FeedBuilder.xml +/.vs/ diff --git a/FeedBuilder/FileInfoEx.cs b/FeedBuilder/FileInfoEx.cs index d3c3170d..307f1366 100644 --- a/FeedBuilder/FileInfoEx.cs +++ b/FeedBuilder/FileInfoEx.cs @@ -31,7 +31,7 @@ public FileInfoEx(string fileName, int rootDirLength) { myFileInfo = new FileInfo(fileName); var verInfo = FileVersionInfo.GetVersionInfo(fileName); - if (myFileVersion == null) + if (!string.IsNullOrWhiteSpace(verInfo.FileVersion)) myFileVersion = new System.Version(verInfo.FileMajorPart, verInfo.FileMinorPart, verInfo.FileBuildPart, verInfo.FilePrivatePart).ToString(); myHash = NAppUpdate.Framework.Utils.FileChecksum.GetSHA256Checksum(fileName);