1 using System.Xml.Serialization;
\r
3 namespace NaGet.Packages
\r
8 public enum InstallerType
\r
13 [XmlEnum(Name="installer")]
\r
16 /// Microsoft Software Installer
\r
18 [XmlEnum(Name="msi")]
\r
23 [XmlEnum(Name="archive")]
\r
26 /// インストールできない単なるデータ(BIOSなど)
\r
28 [XmlEnum(Name="cannotinstall")]
\r
35 public class Package
\r
45 public string Version;
\r
50 public string Summary;
\r
55 public string Description;
\r
60 public LocationEntry Url;
\r
65 public string Author;
\r
70 public InstallerType Type;
\r
73 /// インストーラが書庫内に入っているかのフラグ
\r
75 public bool ArchivedInstaller = false;
\r
78 /// アンインストーラのレジストリのキー
\r
80 public string UninstallerKey;
\r
83 /// インストールスクリプト(MSBuildドキュメント)
\r
85 public string InstallScript;
\r
88 /// アーカイブインストーラのときのSystem32のコピー
\r
90 public string System32CopyFiles;
\r
96 public Installer[] Installer;
\r
101 [XmlArray(IsNullable=true),XmlArrayItem("Entry")]
\r
102 public Entry[] Requires;
\r
107 [XmlArray(IsNullable=true),XmlArrayItem("Entry")]
\r
108 public Entry[] Conflicts;
\r
113 public string Tags;
\r
118 public string License;
\r
123 public string PackageListName;
\r
135 public string Name;
\r
137 /// パッケージのバージョン比較の式
\r
140 public string Flags;
\r
144 public string Version;
\r
147 public class Installer
\r
156 public Platform Platform;
\r
159 /// ダウンロードリソースURLの配列
\r
161 public LocationEntry Url;
\r
167 public HashValue[] Hash;
\r
173 public class LocationEntry
\r
175 // TODO LocationEntryは果たして必要なのかの、考察
\r
180 public LocationEntry()
\r
187 /// <param name="sHref">リソースのURL</param>
\r
188 public LocationEntry(string sHref)
\r
197 public string Href;
\r