Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
//
// BootstrapperBuilder.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[ClassInterface (ClassInterfaceType.None)]
[Guid ("1D9FE38A-0226-4b95-9C6B-6DFFA2236270")]
[ComVisible (true)]
public class BootstrapperBuilder : IBootstrapperBuilder {
string path;
ProductCollection products;
public BootstrapperBuilder ()
{
}
[MonoTODO]
public BuildResults Build (BuildSettings settings)
{
throw new NotImplementedException ();
}
[MonoTODO]
public string [] GetOutputFolders (string [] productCodes, string culture, string fallbackCulture,
ComponentsLocation componentsLocation)
{
throw new NotImplementedException ();
}
public string Path {
get { return path; }
set { path = value; }
}
public ProductCollection Products {
get { return products; }
}
}
}
#endif

View File

@@ -0,0 +1,65 @@
//
// BuildMessage.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
public class BuildMessage : IBuildMessage {
int help_id;
string help_keyword;
string message;
BuildMessageSeverity severity;
BuildMessage ()
{
}
public int HelpId {
get { return help_id;}
}
public string HelpKeyword {
get { return help_keyword; }
}
public string Message {
get { return message; }
}
public BuildMessageSeverity Severity {
get { return severity; }
}
}
}
#endif

View File

@@ -0,0 +1,45 @@
//
// BuildMessageSeverity.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[Guid ("936D32F9-1A68-4d5e-98EA-044AC9A1AADA")]
[ComVisible (true)]
public enum BuildMessageSeverity {
Info,
Warning,
Error
}
}
#endif

View File

@@ -0,0 +1,69 @@
//
// BuildResults.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[ClassInterface (ClassInterfaceType.None)]
[Guid ("FAD7BA7C-CA00-41e0-A5EF-2DA9A74E58E6")]
[ComVisible (true)]
public class BuildResults : IBuildResults {
string [] component_files;
string key_file;
BuildMessage [] messages;
bool succeeded;
BuildResults ()
{
}
public string[] ComponentFiles {
get { return component_files; }
}
public string KeyFile {
get { return key_file; }
}
public BuildMessage [] Messages {
get { return messages; }
}
public bool Succeeded {
get { return succeeded; }
}
}
}
#endif

View File

@@ -0,0 +1,119 @@
//
// BuildSettings.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[ClassInterface (ClassInterfaceType.None)]
[Guid ("5D13802C-C830-4b41-8E7A-F69D9DD6A095")]
[ComVisible (true)]
public class BuildSettings : IBuildSettings {
string applicationFile;
string applicationName;
string applicationUrl;
ComponentsLocation componentsLocation;
string componentsUrl;
bool copyComponents;
int fallbackLCID;
int lcid;
string outputPath;
ProductBuilderCollection productBuilders;
string supportUrl;
bool validate;
public BuildSettings ()
{
}
public string ApplicationFile {
get { return applicationFile; }
set { applicationFile = value; }
}
public string ApplicationName {
get { return applicationName; }
set { applicationName = value; }
}
public string ApplicationUrl {
get { return applicationUrl; }
set { applicationUrl = value; }
}
public ComponentsLocation ComponentsLocation {
get { return componentsLocation; }
set { componentsLocation = value; }
}
public string ComponentsUrl {
get { return componentsUrl; }
set { componentsUrl = value; }
}
public bool CopyComponents {
get { return copyComponents; }
set { copyComponents = value; }
}
public int FallbackLCID {
get { return fallbackLCID; }
set { fallbackLCID = value; }
}
public int LCID {
get { return lcid; }
set { lcid = value; }
}
public string OutputPath {
get { return outputPath; }
set { outputPath = value; }
}
public ProductBuilderCollection ProductBuilders {
get { return productBuilders; }
}
public string SupportUrl {
get { return supportUrl; }
set { supportUrl = value; }
}
public bool Validate {
get { return validate; }
set { validate = value; }
}
}
}
#endif

View File

@@ -0,0 +1,35 @@
2007-02-02 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildResults.cs
* ProductBuilder.cs
* BootstrapperBuilder.cs
* ProductCollection.cs
* ProductBuilderCollection.cs
* BuildMessage.cs: corcompare changes.
2006-10-14 Marek Sieradzki <marek.sieradzki@gmail.com>
* ComponentsLocation.cs: Changed order to match MS.
* BootstrapperBuilder.cs: Added GetOutputFolders ().
* IProductCollection.cs, ProductCollection.cs: Changed indexer to
method.
2006-10-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* IProductBuilderCollection.cs
* IBuildMessage.cs
* ComponentsLocation.cs
* BuildSettings.cs
* BuildResults.cs
* ProductBuilder.cs
* IProduct.cs
* IBuildSettings.cs
* IBuildResults.cs
* BootstrapperBuilder.cs
* ProductCollection.cs
* BuildMessageSeverity.cs
* IProductBuilder.cs
* ProductBuilderCollection.cs
* IBootstrapperBuilder.cs
* BuildMessage.cs
* IProductCollection.cs: Added stubs needed for generating docs.

View File

@@ -0,0 +1,45 @@
//
// ComponentsLocation.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[Guid ("12F49949-7B60-49CD-B6A0-2B5E4A638AAF")]
[ComVisible (true)]
public enum ComponentsLocation {
HomeSite,
Relative,
Absolute
}
}
#endif

View File

@@ -0,0 +1,54 @@
//
// IBootstrapperBuilder.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[InterfaceType (ComInterfaceType.InterfaceIsDual)]
[Guid ("1D202366-5EEA-4379-9255-6F8CDB8587C9")]
[ComVisible (true)]
public interface IBootstrapperBuilder {
string Path {
get;
set;
}
ProductCollection Products {
get;
}
BuildResults Build (BuildSettings settings);
}
}
#endif

View File

@@ -0,0 +1,59 @@
//
// IBuildMessage.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[InterfaceType (ComInterfaceType.InterfaceIsDual)]
[Guid ("E3C981EA-99E6-4f48-8955-1AAFDFB5ACE4")]
[ComVisible (true)]
public interface IBuildMessage {
int HelpId {
get;
}
string HelpKeyword {
get;
}
string Message {
get;
}
BuildMessageSeverity Severity {
get;
}
}
}
#endif

View File

@@ -0,0 +1,59 @@
//
// IBuildResults.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[InterfaceType (ComInterfaceType.InterfaceIsDual)]
[Guid ("586B842C-D9C7-43b8-84E4-9CFC3AF9F13B")]
[ComVisible (true)]
public interface IBuildResults {
string[] ComponentFiles {
get;
}
string KeyFile {
get;
}
BuildMessage[] Messages {
get;
}
bool Succeeded {
get;
}
}
}
#endif

View File

@@ -0,0 +1,102 @@
//
// IBuildSettings.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[InterfaceType (ComInterfaceType.InterfaceIsDual)]
[Guid ("87EEBC69-0948-4ce6-A2DE-819162B87CC6")]
[ComVisible (true)]
public interface IBuildSettings {
string ApplicationFile {
get;
set;
}
string ApplicationName {
get;
set;
}
string ApplicationUrl {
get;
set;
}
ComponentsLocation ComponentsLocation {
get;
set;
}
string ComponentsUrl {
get;
set;
}
bool CopyComponents {
get;
set;
}
int FallbackLCID {
get;
set;
}
int LCID {
get;
set;
}
string OutputPath {
get;
set;
}
ProductBuilderCollection ProductBuilders {
get;
}
string SupportUrl {
get;
set;
}
bool Validate {
get;
set;
}
}
}
#endif

View File

@@ -0,0 +1,59 @@
//
// IProduct.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[InterfaceType (ComInterfaceType.InterfaceIsDual)]
[Guid ("9E81BE3D-530F-4a10-8349-5D5947BA59AD")]
[ComVisible (true)]
public interface IProduct {
ProductCollection Includes {
get;
}
string Name {
get;
}
ProductBuilder ProductBuilder {
get;
}
string ProductCode {
get;
}
}
}
#endif

View File

@@ -0,0 +1,47 @@
//
// IProductBuilder.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[InterfaceType (ComInterfaceType.InterfaceIsDual)]
[Guid ("0777432F-A60D-48b3-83DB-90326FE8C96E")]
[ComVisible (true)]
public interface IProductBuilder {
Product Product {
get;
}
}
}
#endif

View File

@@ -0,0 +1,45 @@
//
// IProductBuilderCollection.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[InterfaceType (ComInterfaceType.InterfaceIsDual)]
[Guid ("0D593FC0-E3F1-4dad-A674-7EA4D327F79B")]
[ComVisible (true)]
public interface IProductBuilderCollection {
void Add (ProductBuilder builder);
}
}
#endif

View File

@@ -0,0 +1,51 @@
//
// IProductCollection.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[InterfaceType (ComInterfaceType.InterfaceIsDual)]
[Guid ("63F63663-8503-4875-814C-09168E595367")]
[ComVisible (true)]
public interface IProductCollection {
int Count {
get;
}
Product Item (int index);
Product Product (string productCode);
}
}
#endif

View File

@@ -0,0 +1,68 @@
//
// Product.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[ClassInterface (ClassInterfaceType.None)]
[Guid ("532BF563-A85D-4088-8048-41F51AC5239F")]
[ComVisible (true)]
public class Product : IProduct {
ProductCollection includes;
string name;
ProductBuilder productBuilder;
string productCode;
public Product ()
{
}
public ProductCollection Includes {
get { return includes; }
}
public string Name {
get { return name; }
}
public ProductBuilder ProductBuilder {
get { return productBuilder; }
}
public string ProductCode {
get { return productCode; }
}
}
}
#endif

View File

@@ -0,0 +1,50 @@
//
// ProductBuilder.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
public class ProductBuilder : IProductBuilder {
Product product;
ProductBuilder ()
{
}
public Product Product {
get { return product; }
}
}
}
#endif

View File

@@ -0,0 +1,64 @@
//
// ProductBuilderCollection.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[ClassInterface (ClassInterfaceType.None)]
[Guid ("D25C0741-99CA-49f7-9460-95E5F25EEF43")]
[ComVisible (true)]
public class ProductBuilderCollection : IProductBuilderCollection, IEnumerable {
List <ProductBuilder> list;
ProductBuilderCollection ()
{
list = new List <ProductBuilder> ();
}
[MonoTODO]
public void Add (ProductBuilder builder)
{
list.Add (builder);
}
[MonoTODO]
public IEnumerator GetEnumerator ()
{
return list.GetEnumerator ();
}
}
}
#endif

View File

@@ -0,0 +1,79 @@
//
// ProductCollection.cs
//
// Author:
// Marek Sieradzki (marek.sieradzki@gmail.com)
//
// (C) 2006 Marek Sieradzki
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
namespace Microsoft.Build.Tasks.Deployment.Bootstrapper {
[ClassInterface (ClassInterfaceType.None)]
[Guid ("EFFA164B-3E87-4195-88DB-8AC004DDFE2A")]
[ComVisible (true)]
public class ProductCollection : IProductCollection, IEnumerable {
List <Product> list;
ProductCollection ()
{
list = new List <Product> ();
}
[MonoTODO]
public int Count {
get { return list.Count; }
}
[MonoTODO]
public IEnumerator GetEnumerator ()
{
return list.GetEnumerator ();
}
[MonoTODO]
public Product Item (int index)
{
return list [index];
}
[MonoTODO]
public Product Product (string productCode)
{
int idx = list.FindIndex (delegate (Product p) {
return p.ProductCode == productCode;
});
return (idx == -1) ? null : list [idx];
}
}
}
#endif