1 // Copyright (c) Microsoft. All rights reserved. 2 // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 4 using System; 5 using System.ComponentModel; 6 using System.Runtime.InteropServices; 7 using System.Text.RegularExpressions; 8 using System.Xml; 9 using System.Xml.Serialization; 10 11 namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities 12 { 13 /// <summary> 14 /// Describes a CompatibleFramework for an deployment manifest 15 /// </summary> 16 [ComVisible(false)] 17 public sealed class CompatibleFramework 18 { 19 private string _version = null; 20 private string _profile = null; 21 private string _supportedRuntime = null; 22 23 /// <summary> 24 /// Initializes a new instance of the CompatibleFramework class 25 /// </summary> CompatibleFramework()26 public CompatibleFramework() 27 { 28 } 29 30 [XmlIgnore] 31 public string Version 32 { 33 get { return _version; } 34 set { _version = value; } 35 } 36 37 [XmlIgnore] 38 public string Profile 39 { 40 get { return _profile; } 41 set { _profile = value; } 42 } 43 44 [XmlIgnore] 45 public string SupportedRuntime 46 { 47 get { return _supportedRuntime; } 48 set { _supportedRuntime = value; } 49 } 50 51 #region " XmlSerializer " 52 53 [Browsable(false)] 54 [EditorBrowsable(EditorBrowsableState.Never)] 55 [XmlAttribute("Version")] 56 public string XmlVersion 57 { 58 get { return _version; } 59 set { _version = value; } 60 } 61 62 [Browsable(false)] 63 [EditorBrowsable(EditorBrowsableState.Never)] 64 [XmlAttribute("Profile")] 65 public string XmlProfile 66 { 67 get { return _profile; } 68 set { _profile = value; } 69 } 70 71 [Browsable(false)] 72 [EditorBrowsable(EditorBrowsableState.Never)] 73 [XmlAttribute("SupportedRuntime")] 74 public string XmlSupportedRuntime 75 { 76 get { return _supportedRuntime; } 77 set { _supportedRuntime = value; } 78 } 79 80 #endregion 81 } 82 } 83