Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/Build/Instance/ProjectInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1390,13 +1390,11 @@ public void AddSdkResolvedEnvironmentVariable(string name, string value)
// If the property has already been set as an environment variable, we do not overwrite it.
if (_environmentVariableProperties.Contains(name))
{
_loggingContext.LogComment(MessageImportance.Low, "SdkEnvironmentVariableAlreadySet", name, value);
Comment thread
YuliiaKovalova marked this conversation as resolved.
return;
}
// If another SDK already set it, we do not overwrite it.
else if (_sdkResolvedEnvironmentVariableProperties?.Contains(name) == true)
{
_loggingContext.LogComment(MessageImportance.Low, "SdkEnvironmentVariableAlreadySetBySdk", name, value);
return;
}

Expand All @@ -1412,8 +1410,6 @@ public void AddSdkResolvedEnvironmentVariable(string name, string value)
((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this)
.SetProperty(name, value, isGlobalProperty: false, mayBeReserved: false, loggingContext: _loggingContext, isEnvironmentVariable: true, isCommandLineProperty: false);
}

_loggingContext.LogComment(MessageImportance.Low, "SdkEnvironmentVariableSet", name, value);
Comment thread
YuliiaKovalova marked this conversation as resolved.
}

/// <summary>
Expand Down