Closed sergey-s-betke closed 7 years ago
@sergey-s-betke: What are the values of the CONFIGURATION
and Configuration
environment variables, respectively?
Release
in my scenario. (Release
| Debug
, but in my AppVeyor scenario - just Release
).
If both variables have the same value, what's the value in having both available in a case-sensitive way? Perhaps what we can do in GitVersion is to do a case-insensitive search for both the key and value and if both match the key/value being added, we can drop it (perhaps with a warning).
Yes! Now AppVeyor generates upper case variable CONFIGURATION
, and MSBuild generates mixed case variable Configuration
. But environment variables must be case-insensitive. I think, if exists a few variables with same key (case-insensitive comparison), we must drop second and other variables with same key, and no matter identical values or not. May be with warning, but with ZERO (ERROR_SUCCESS) EXIT CODE!
@asbjornu , I think, is a bag, not a enhancement :-) Now I can not build my project on AppVeyor build servers!
@sergey-s-betke: I'm not sure this is actually a bug in GitVersion, seeing how it's the System.Diagnostics.ProcessStartInfo.get_EnvironmentVariables()
method that fails. It might be seen as a bug, but I'm not certain there's anything we can do about it in GitVersion, to be honest.
@asbjornu, please, switch to .Net 4.0! It is a solution!
@sergey-s-betke: Thanks for the reference. From what I understand of that issue, it is fixed in .NET Core, not in any other version of .NET. GitVersion already targets .NET Framework v4.0.
I am unsure how we can solve this, it is an environmental issue which .NET just does not support. The resolution here is to ensure that you standardise the casing of environmental variables.
If you would like to try and submit a pull request with a fix for this then please go ahead @sergey-s-betke. Am going to close this issue as an upstream issue.
I have error with
/exec
key. Build session log - https://ci.appveyor.com/project/sergey-s-betke/itg-metrcontrol-2-4/build/0.1.0-bootstrapper-vnext.128.build.62.log:
In GitVersion environment exists
CONFIGURATION
variable (from AppVeyor...), and, project hasConfiguration
variable. I think, collection (for environment variables) key must be case independent!!!Excuse for my English...
Please, help.