diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-04-01 15:57:26 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2014-04-01 15:57:26 +0400 |
commit | 24fe4da718510f818f9643d625bf0c040d981e46 (patch) | |
tree | c9f1f65b9328cb8e8426ad867bf8479b0a1bf9ae /main/src/core/MonoDevelop.Core | |
parent | c063a2372868cca03c32082551165973cb4da298 (diff) |
[Core] Added project binding for Shared Assets project
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
4 files changed, 65 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.addin.xml b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.addin.xml index 6882767eba..8ceef1bc6a 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.addin.xml +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.addin.xml @@ -219,6 +219,7 @@ <ProjectBinding id = "DotNet" class = "MonoDevelop.Projects.DotNetProjectBinding" /> <ProjectBinding id = "GenericProject" class = "MonoDevelop.Projects.GenericProjectBinding" /> <ProjectBinding id = "PortableDotNet" class = "MonoDevelop.Projects.PortableDotNetProjectBinding" /> + <ProjectBinding id = "SharedAssetsProject" class = "MonoDevelop.Projects.SharedAssetsProjects.SharedAssetsProjectBinding" /> </Extension> <Extension path = "/MonoDevelop/ProjectModel/FileFormats"> diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj index c9b76ad979..1baa40ba82 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj @@ -460,6 +460,7 @@ <Compile Include="MonoDevelop.Projects.SharedAssetsProjects\SharedAssetsProject.cs" /> <Compile Include="MonoDevelop.Projects.SharedAssetsProjects\SharedAssetsProjectMSBuildExtension.cs" /> <Compile Include="MonoDevelop.Projects.SharedAssetsProjects\SharedAssetsProjectMSBuildHandler.cs" /> + <Compile Include="MonoDevelop.Projects.SharedAssetsProjects\SharedAssetsProjectBinding.cs" /> </ItemGroup> <ItemGroup> <None Include="Makefile.am" /> diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.SharedAssetsProjects/SharedAssetsProject.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.SharedAssetsProjects/SharedAssetsProject.cs index 76de963cba..84bf75af5b 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.SharedAssetsProjects/SharedAssetsProject.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.SharedAssetsProjects/SharedAssetsProject.cs @@ -29,6 +29,7 @@ using System.Linq; using System.Collections.Generic; using MonoDevelop.Core; using System.IO; +using System.Xml; namespace MonoDevelop.Projects.SharedAssetsProjects { @@ -40,6 +41,10 @@ namespace MonoDevelop.Projects.SharedAssetsProjects { } + public SharedAssetsProject (ProjectCreateInformation projectCreateInfo, XmlElement projectOptions) + { + } + public string DefaultNamespace { get; set; } public override string ProjectType { diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.SharedAssetsProjects/SharedAssetsProjectBinding.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.SharedAssetsProjects/SharedAssetsProjectBinding.cs new file mode 100644 index 0000000000..ca7f7527a1 --- /dev/null +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.SharedAssetsProjects/SharedAssetsProjectBinding.cs @@ -0,0 +1,58 @@ +// +// SharedAssetsProjectBinding.cs +// +// Author: +// Lluis Sanchez Gual <lluis@xamarin.com> +// +// Copyright (c) 2014 Xamarin, Inc (http://www.xamarin.com) +// +// 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. +using System; + +namespace MonoDevelop.Projects.SharedAssetsProjects +{ + public class SharedAssetsProjectBinding: IProjectBinding + { + #region IProjectBinding implementation + + public Project CreateProject (ProjectCreateInformation info, System.Xml.XmlElement projectOptions) + { + return new SharedAssetsProject (info, projectOptions); + } + + public Project CreateSingleFileProject (string sourceFile) + { + throw new NotImplementedException (); + } + + public bool CanCreateSingleFileProject (string sourceFile) + { + return false; + } + + public string Name { + get { + return "SharedAssetsProject"; + } + } + + #endregion + } +} + |