diff options
| author | Rob Mensching <rob@firegiant.com> | 2024-03-06 14:48:10 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2024-03-07 10:55:57 -0800 |
| commit | 3d2d46f62fc01e2653d0251ad9703090574e7c41 (patch) | |
| tree | ffdf7dce6c646f38b5e3ad8325c2ce78ca891a1a /src/api/burn/WixToolset.Mba.Core/MbaCommand.cs | |
| parent | a8504dc4eb1c2d09965b0858699ac737336ef3c1 (diff) | |
| download | wix-3d2d46f62fc01e2653d0251ad9703090574e7c41.tar.gz wix-3d2d46f62fc01e2653d0251ad9703090574e7c41.tar.bz2 wix-3d2d46f62fc01e2653d0251ad9703090574e7c41.zip | |
Better .nupkg names
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/MbaCommand.cs')
| -rw-r--r-- | src/api/burn/WixToolset.Mba.Core/MbaCommand.cs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/api/burn/WixToolset.Mba.Core/MbaCommand.cs b/src/api/burn/WixToolset.Mba.Core/MbaCommand.cs deleted file mode 100644 index bd93b7e7..00000000 --- a/src/api/burn/WixToolset.Mba.Core/MbaCommand.cs +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Mba.Core | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.Collections.Generic; | ||
| 7 | |||
| 8 | /// <summary> | ||
| 9 | /// Default implementation of <see cref="IMbaCommand"/>. | ||
| 10 | /// </summary> | ||
| 11 | internal sealed class MbaCommand : IMbaCommand | ||
| 12 | { | ||
| 13 | public Restart Restart { get; internal set; } | ||
| 14 | |||
| 15 | public string[] UnknownCommandLineArgs { get; internal set; } | ||
| 16 | |||
| 17 | public KeyValuePair<string, string>[] Variables { get; internal set; } | ||
| 18 | |||
| 19 | internal MbaCommand() { } | ||
| 20 | |||
| 21 | public void SetOverridableVariables(IOverridableVariables overridableVariables, IEngine engine) | ||
| 22 | { | ||
| 23 | foreach (var kvp in this.Variables) | ||
| 24 | { | ||
| 25 | var key = kvp.Key; | ||
| 26 | |||
| 27 | if (!overridableVariables.Variables.TryGetValue(key, out var overridableVariable)) | ||
| 28 | { | ||
| 29 | engine.Log(LogLevel.Error, String.Format("Ignoring attempt to set non-overridable variable: '{0}'.", key)); | ||
| 30 | } | ||
| 31 | else | ||
| 32 | { | ||
| 33 | engine.SetVariableString(overridableVariable.Name, kvp.Value, false); | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
| 37 | } | ||
| 38 | } | ||
