You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a feeling the version info was removed in 5.0, but not completely and singlegilehost on Linux gets its commit sha somehow, while the version is a placeholder (that is - in an official sdk installed from apt-get)
that is - in an official sdk installed from apt-get
Ah, then that seems like a bug that was missed or if the version was removed intentionally, then I haven't heard about it and I don't understand the reason.
I think we should make it very explicit what we want:
We WANT - Include the version of the apphost (build number and commit) in the binary - so that I can grep for it. This is to help debug problems - not for end user consumption.
We DON'T WANT - include version resource on Windows - since that should be the version of the app which we have no control over. (This doesn't have a counterpart on Linux/macOS anyway)
Fixed in 6.0.100-preview.5.21230.4. I have noticed another issue (still on Unix), where shared libraries (.so) produced by libraries subset have incorrect official build version, opened dotnet/arcade#7326.
ghost locked as resolved and limited conversation to collaborators on May 31, 2021
Activity
VSadov commentedon Apr 26, 2021
I've checked
singlefilehost.exe5.0 andapphost.exe5.0 and 3.1. None seem to have versioning information.Was that string included only on Unix?
I wonder if that was intentional, considering the version was incorrect.
janvorli commentedon Apr 26, 2021
What do you mean by "incorrect"?
VSadov commentedon Apr 26, 2021
It is literally
@(#)Version 42.42.42.42424 @Commit: 2f740adc1457e8a28c1c072993b66f515977eb51This is a placeholder version, not a real one.
janvorli commentedon Apr 26, 2021
The placeholder is used by all local builds. Only official builds include the real version.
VSadov commentedon Apr 26, 2021
Also, in 3.1
apphostcontains the following@(#)Version 3.100.320.12801 @Commit: 4a9f85e9f89d7f686fef2ae2109d876b1e2eed2a
but that is gone in 5.0.
I do not see any version info in 5.0 apphost.
VSadov commentedon Apr 26, 2021
I have a feeling the version info was removed in 5.0, but not completely and singlegilehost on Linux gets its commit sha somehow, while the version is a placeholder (that is - in an official sdk installed from apt-get)
janvorli commentedon Apr 26, 2021
Ah, then that seems like a bug that was missed or if the version was removed intentionally, then I haven't heard about it and I don't understand the reason.
vitek-karas commentedon Apr 26, 2021
I'm pretty sure we have an issue about the dev-only version somewhere, I just can't find it now.
janvorli commentedon Apr 26, 2021
The problem is that even official one is missing the version string, according to Vlad.
vitek-karas commentedon Apr 26, 2021
Yes I understand that - we need to fix it.
VSadov commentedon Apr 26, 2021
It looks like removal of version info from apphost was intentional - dotnet/core-setup#2287
VSadov commentedon Apr 26, 2021
Some reasons why hosts should not be version-stamped were given in the discussion at dotnet/core-setup#2090 (comment)
vitek-karas commentedon Apr 26, 2021
I think we should make it very explicit what we want:
am11 commentedon Apr 30, 2021
Fixed in
6.0.100-preview.5.21230.4. I have noticed another issue (still on Unix), where shared libraries (.so) produced by libraries subset have incorrect official build version, opened dotnet/arcade#7326.