dotnet / dotnet/cli-lab

File version information is missing in v1.6.0

Open
#249 1 comment 0 reactions 0 assignees View on GitHub
Area-Uninstall-Tool
Dominant language
C#
Stars
774
Forks
72
Avg merge
1d 23h
Merged PRs (30d)
2

Description

In my routine, I check the `VersionInfo.FileVersion` property to verify whether I need to install a new software version. E.g (pseudo code):

```
$currentversion = [System.Version](Get-ItemProperty "C:\Program Files (x86)\dotnet-core-uninstall\dotnet-core-uninstall.exe").VersionInfo.FileVersion
$latestversion = [System.Version](Get-ItemProperty "C:\Users\Downloads\dotnet-core-uninstall-1.6.0.msi").VersionInfo.FileVersion
if($latestversion -gt $currentversion) { write-host "Install a new version" }
```

Unfortunately, `dotnet-core-uninstall-1.6.0.msi` lacks this information:

```
(Get-ItemProperty "C:\Program Files (x86)\dotnet-core-uninstall\dotnet-core-uninstall.exe").VersionInfo.FileVersion
1.5.5.5402
(Get-ItemProperty "C:\Users\Downloads\dotnet-core-uninstall-1.6.0.msi").VersionInfo.FileVersion

VersionInfo : File: C:\Program Files (x86)\dotnet-core-uninstall\dotnet-core-uninstall.exe
InternalName: dotnet-core-uninstall.dll
OriginalFilename: dotnet-core-uninstall.dll
FileVersion: 1.5.5.5402

VersionInfo : File: C:\Users\Downloads\dotnet-core-uninstall-1.6.0.msi
InternalName:
OriginalFilename:
FileVersion:
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.