Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
48 changes: 48 additions & 0 deletions Microsoft.DotNet.Framework.Docker.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.DotNet.Framework.UpdateDependencies", "eng\update-dependencies\Microsoft.DotNet.Framework.UpdateDependencies.csproj", "{41061718-0920-4131-A70C-F52E46C89E31}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.DotNet.Framework.Docker.Tests", "tests\Microsoft.DotNet.Framework.Docker.Tests\Microsoft.DotNet.Framework.Docker.Tests.csproj", "{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{41061718-0920-4131-A70C-F52E46C89E31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Debug|Any CPU.Build.0 = Debug|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Debug|x64.ActiveCfg = Debug|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Debug|x64.Build.0 = Debug|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Debug|x86.ActiveCfg = Debug|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Debug|x86.Build.0 = Debug|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Release|Any CPU.ActiveCfg = Release|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Release|Any CPU.Build.0 = Release|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Release|x64.ActiveCfg = Release|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Release|x64.Build.0 = Release|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Release|x86.ActiveCfg = Release|Any CPU
{41061718-0920-4131-A70C-F52E46C89E31}.Release|x86.Build.0 = Release|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Debug|x64.ActiveCfg = Debug|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Debug|x64.Build.0 = Debug|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Debug|x86.ActiveCfg = Debug|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Debug|x86.Build.0 = Debug|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Release|Any CPU.Build.0 = Release|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Release|x64.ActiveCfg = Release|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Release|x64.Build.0 = Release|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Release|x86.ActiveCfg = Release|Any CPU
{ACB9C5B2-6D27-4487-94A1-6F397AC4D733}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
29 changes: 0 additions & 29 deletions eng/update-dependencies/CustomFileRegexUpdater.cs

This file was deleted.

189 changes: 0 additions & 189 deletions eng/update-dependencies/DependencyUpdater.cs

This file was deleted.

31 changes: 31 additions & 0 deletions eng/update-dependencies/IVariableContext.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DotNet.Framework.UpdateDependencies;

/// <summary>
/// Provides access to a collection of named variables that can be retrieved
/// and modified. Variables support recursive resolution, allowing one variable
/// to reference another using the $(variableName) syntax.
/// </summary>
internal interface IVariableContext
{
/// <summary>
/// Retrieves or updates a variable by name. When retrieving, any embedded
/// variable references are resolved recursively. When setting, the
/// underlying content is updated to reflect the change.
/// </summary>
/// <param name="key">
/// The name of the variable to access.
/// </param>
/// <returns>
/// The resolved value of the variable, or an empty string if not found.
/// </returns>
string this[string key] { get; set; }

/// <summary>
/// Enumerates all available variable names in this context.
/// </summary>
IEnumerable<string> AllVariables { get; }
}
40 changes: 40 additions & 0 deletions eng/update-dependencies/IVariableUpdater.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DotNet.Framework.UpdateDependencies;

internal interface IVariableUpdater
{
/// <summary>
/// Determines whether a variable should be updated based on its name.
/// </summary>
/// <param name="variableKey">
/// The name of the variable being checked for update eligibility.
/// </param>
/// <param name="variables">
/// All variables in the current context, in case the updater needs to
/// reference other variables when determining if an update is needed.
/// </param>
/// <returns>
/// True if the variable should be updated.
/// </returns>
bool ShouldUpdate(string variableKey, IVariableContext variables);

/// <summary>
/// Computes a new value for a variable based on its current name and the
/// surrounding context. This method is only called for variables whose
/// names match the <see cref="KeyPattern"/>.
/// </summary>
/// <param name="variableKey">
/// The name of the variable being updated.
/// </param>
/// <param name="variables">
/// All variables in the current context. Used to reference other variables
/// when generating a new value.
/// </param>
/// <returns>
/// The new value that should be assigned to the variable.
/// </returns>
Task<string> GetNewValueAsync(string variableKey, IVariableContext variables);
}
Loading