2 // GenerateBootstrapper.cs
5 // Marek Sieradzki (marek.sieradzki@gmail.com)
7 // (C) 2006 Marek Sieradzki
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using Microsoft.Build.Framework;
33 namespace Microsoft.Build.Tasks {
34 public sealed class GenerateBootstrapper : TaskExtension {
36 string applicationFile;
37 string applicationName;
38 string applicationUrl;
39 string[] bootstrapperComponentFiles;
40 ITaskItem[] bootstrapperItems;
41 string bootstrapperKeyFile;
42 string componentsLocation;
46 string fallbackCulture;
52 public GenerateBootstrapper ()
56 public override bool Execute ()
61 public string ApplicationFile {
62 get { return applicationFile; }
63 set { applicationFile = value; }
66 public string ApplicationName {
67 get { return applicationName; }
68 set { applicationName = value; }
71 public string ApplicationUrl {
72 get { return applicationUrl; }
73 set { applicationUrl = value; }
77 public string[] BootstrapperComponentFiles {
78 get { return bootstrapperComponentFiles; }
79 set { bootstrapperComponentFiles = value; }
82 public ITaskItem[] BootstrapperItems {
83 get { return bootstrapperItems; }
84 set { bootstrapperItems = value; }
88 public string BootstrapperKeyFile {
89 get { return bootstrapperKeyFile; }
90 set { bootstrapperKeyFile = value; }
93 public string ComponentsLocation {
94 get { return componentsLocation; }
95 set { componentsLocation = value; }
98 public string ComponentsUrl {
99 get { return componentsUrl; }
100 set { componentsUrl = value; }
103 public bool CopyComponents {
104 get { return copyComponents; }
105 set { copyComponents = value; }
108 public string Culture {
109 get { return culture; }
110 set { culture = value; }
113 public string FallbackCulture {
114 get { return fallbackCulture; }
115 set { fallbackCulture = value; }
118 public string OutputPath {
119 get { return outputPath; }
120 set { outputPath = value; }
125 set { path = value; }
128 public string SupportUrl {
129 get { return supportUrl; }
130 set { supportUrl = value; }
133 public bool Validate {
134 get { return validate; }
135 set { validate = value; }