dotnet / dotnet/core

Autogenerated FileVersion does not get tagged on the assembly

Open
#4,336 2 comments 0 reactions 1 assignee Assigned to @dsplaisted View on GitHub
Dominant language
PowerShell
Stars
22k
Forks
4.9k
Avg merge
5d 5h
Merged PRs (30d)
29

Description

In my .net core app I can correctly auto generate [version number from current date/time](https://github.com/dotnet/roslyn/blob/916b15dbf6b7ef1b33391d5252a4905aacb6f488/src/Compilers/Core/Portable/VersionHelper.cs#L176), I can read the assembly version via reflection API at run time.

However I can't seem to tag the same version number to "File Version", my goal is to be able to read the same version number by right clicking the binary in windows explorer.

I am using dotnet cli to build using below csproj for example.

```


WinExe
netcoreapp3.1
true
**1.0.*
1.0.*
false**
Demo
My Company
Copyright © Xyzzy 2020
Description
true
true
true
true
true
true
true
true
true
true

```

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.