Simplify computation of oldest framework reference (dotnet/core-setup#5142)
authorVitek Karas <vitek.karas@microsoft.com>
Tue, 12 Feb 2019 23:23:18 +0000 (15:23 -0800)
committerGitHub <noreply@github.com>
Tue, 12 Feb 2019 23:23:18 +0000 (15:23 -0800)
commit46a42d0b5f9368e3e0c10b68b1b5d07d36de521e
tree5b9389d19535f91b02fb8110dd4b1f1fc6a8cafd
parent722f62fdd9e0459caeca597af6470b4520790b94
Simplify computation of oldest framework reference (dotnet/core-setup#5142)

Instead of passing the list of oldest references all the way down to the code which performs roll forwards, simply assign to it when we enumerate reerences for the first time.
The only difference is that in case of a failure the oldest reference will be filled while before it would not be fully up to date.

Commit migrated from https://github.com/dotnet/core-setup/commit/70d4423e3c6f6b4439c8ecfdc2c33ccf595a5b93
src/installer/corehost/cli/fxr/fx_muxer.cpp
src/installer/corehost/cli/fxr/fx_muxer.h