From 6b1fe77c1b3bf048c20a631f929e315eee7d8b5a Mon Sep 17 00:00:00 2001 From: vfedosevich Date: Mon, 8 Apr 2013 12:56:25 +0300 Subject: [PATCH] SharePoint 2013 classes moved to an their own assembly. --- WebsitePanel/Database/update_db.sql | 5 +- .../HostedSharePointServer2013.cs | 0 .../HostedSharePointServer2013Impl.cs | 4 +- .../Properties/AssemblyInfo.cs | 36 +++++++++ ...iders.HostedSolution.SharePoint2013.csproj | 74 +++++++++++++++++++ WebsitePanel/Sources/WebsitePanel.Server.sln | 12 +++ 6 files changed, 127 insertions(+), 4 deletions(-) rename WebsitePanel/Sources/{WebsitePanel.Providers.HostedSolution => WebsitePanel.Providers.HostedSolution.SharePoint2013}/HostedSharePointServer2013.cs (100%) rename WebsitePanel/Sources/{WebsitePanel.Providers.HostedSolution => WebsitePanel.Providers.HostedSolution.SharePoint2013}/HostedSharePointServer2013Impl.cs (97%) create mode 100644 WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/Properties/AssemblyInfo.cs create mode 100644 WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/WebsitePanel.Providers.HostedSolution.SharePoint2013.csproj diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index e050b8ac..a37adc1c 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -428,6 +428,9 @@ GO IF NOT EXISTS (SELECT * FROM [dbo].[Providers] WHERE [DisplayName] = 'Hosted SharePoint Foundation 2013') BEGIN INSERT [dbo].[Providers] ([ProviderID], [GroupID], [ProviderName], [DisplayName], [ProviderType], [EditorControl], [DisableAutoDiscovery]) -VALUES (1301, 20, N'HostedSharePoint2013', N'Hosted SharePoint Foundation 2013', N'WebsitePanel.Providers.HostedSolution.HostedSharePointServer2013, WebsitePanel.Providers.HostedSolution', N'HostedSharePoint30', NULL) +VALUES (1301, 20, N'HostedSharePoint2013', N'Hosted SharePoint Foundation 2013', N'WebsitePanel.Providers.HostedSolution.HostedSharePointServer2013, WebsitePanel.Providers.HostedSolution.SharePoint2013', N'HostedSharePoint30', NULL) END +GO + +UPDATE Providers SET ProviderType = N'WebsitePanel.Providers.HostedSolution.HostedSharePointServer2013, WebsitePanel.Providers.HostedSolution.SharePoint2013' WHERE ProviderID = 1301 GO \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/HostedSharePointServer2013.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/HostedSharePointServer2013.cs similarity index 100% rename from WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/HostedSharePointServer2013.cs rename to WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/HostedSharePointServer2013.cs diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/HostedSharePointServer2013Impl.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/HostedSharePointServer2013Impl.cs similarity index 97% rename from WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/HostedSharePointServer2013Impl.cs rename to WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/HostedSharePointServer2013Impl.cs index cc040480..e08061a1 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/HostedSharePointServer2013Impl.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/HostedSharePointServer2013Impl.cs @@ -53,7 +53,7 @@ namespace WebsitePanel.Providers.HostedSolution try { - languages.AddRange(from SPLanguage lang in SPRegionalSettings.GlobalInstalledLanguages select lang.LCID); + languages.AddRange(from SPLanguage lang in SPRegionalSettings.GlobalInstalledLanguages select lang.LCID); } finally { @@ -623,8 +623,6 @@ namespace WebsitePanel.Providers.HostedSolution { HostedSolutionLog.LogStart("ExecuteShellCommand"); var errorList = new List(); - - HostedSolutionLog.DebugCommand(cmd); Collection results; using (Pipeline pipeLine = runspace.CreatePipeline()) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/Properties/AssemblyInfo.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..35987e64 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("WebsitePanel.Providers.HostedSolution.SharePoint2013")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WebsitePanel.Providers.HostedSolution.SharePoint2013")] +[assembly: AssemblyCopyright("Copyright © 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9bb9c655-3db4-4ca4-b856-1bce9cd727ba")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/WebsitePanel.Providers.HostedSolution.SharePoint2013.csproj b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/WebsitePanel.Providers.HostedSolution.SharePoint2013.csproj new file mode 100644 index 00000000..7d724426 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.SharePoint2013/WebsitePanel.Providers.HostedSolution.SharePoint2013.csproj @@ -0,0 +1,74 @@ + + + + + Debug + AnyCPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1} + Library + Properties + WebsitePanel.Providers.HostedSolution.SharePoint2013 + WebsitePanel.Providers.HostedSolution.SharePoint2013 + v4.5 + 512 + + + true + full + false + ..\WebsitePanel.Server\bin\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\..\Lib\References\Microsoft\Microsoft.SharePoint.dll + + + + + + + + + + + + + + + + + + + {684C932A-6C75-46AC-A327-F3689D89EB42} + WebsitePanel.Providers.Base + + + {A06DE5E4-4331-47E1-8F46-7B846146B559} + WebsitePanel.Providers.HostedSolution + + + {E91E52F3-9555-4D00-B577-2B1DBDD87CA7} + WebsitePanel.Server.Utils + + + + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.Server.sln b/WebsitePanel/Sources/WebsitePanel.Server.sln index e7e517f5..bbebac23 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.sln +++ b/WebsitePanel/Sources/WebsitePanel.Server.sln @@ -128,6 +128,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebsitePanel.Providers.Host {E91E52F3-9555-4D00-B577-2B1DBDD87CA7} = {E91E52F3-9555-4D00-B577-2B1DBDD87CA7} EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebsitePanel.Providers.HostedSolution.SharePoint2013", "WebsitePanel.Providers.HostedSolution.SharePoint2013\WebsitePanel.Providers.HostedSolution.SharePoint2013.csproj", "{24762DC8-6078-4F10-A524-C94ED59BD5D1}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -648,6 +650,16 @@ Global {E5DB0722-CDC2-4D7F-8EEB-563578085FA7}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {E5DB0722-CDC2-4D7F-8EEB-563578085FA7}.Release|Mixed Platforms.Build.0 = Release|Any CPU {E5DB0722-CDC2-4D7F-8EEB-563578085FA7}.Release|x86.ActiveCfg = Release|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Debug|x86.ActiveCfg = Debug|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Release|Any CPU.Build.0 = Release|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {24762DC8-6078-4F10-A524-C94ED59BD5D1}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE