// 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.
namespace WixToolset.Mba.Host
{
using System;
using System.Configuration;
///
/// Handler for the supportedFramework configuration section.
///
public sealed class SupportedFrameworkElement : ConfigurationElement
{
private static readonly ConfigurationProperty versionProperty = new ConfigurationProperty("version", typeof(string), null, ConfigurationPropertyOptions.IsRequired);
private static readonly ConfigurationProperty runtimeVersionProperty = new ConfigurationProperty("runtimeVersion", typeof(string));
///
/// Creates a new instance of the class.
///
public SupportedFrameworkElement()
{
}
///
/// Gets the version of the supported framework.
///
///
/// The assembly specified by this name must contain a value matching the NETFX version registry key under
/// "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP".
///
[ConfigurationProperty("version", IsRequired = true)]
public string Version
{
get { return (string)base[versionProperty]; }
set { base[versionProperty] = value; }
}
///
/// Gets the runtime version required by this supported framework.
///
[ConfigurationProperty("runtimeVersion", IsRequired = false)]
public string RuntimeVersion
{
get { return (string)base[runtimeVersionProperty]; }
set { base[runtimeVersionProperty] = value; }
}
}
}