Skip to content

Incorrect file version check for text files #115

@firsinanton

Description

@firsinanton

FeedBuilder generates version"0.0.0.0" for text files (such as .config files).
If we generates with CompareVersion=True, it includes for that files the following condition:

While checking for update it checks this version with the version of text file, and version becomes null:
(FileVersionCondition.cs: 37)

var versionInfo = FileVersionInfo.GetVersionInfo(localPath);
if (versionInfo.FileVersion == null) return true; // perform the update if no version info is found

And in this case NAppUpdate thies to update these files every time, even they are binary equal to each other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions