Initial project's source code check-in.
This commit is contained in:
commit
b03b0b373f
4573 changed files with 981205 additions and 0 deletions
|
@ -0,0 +1,21 @@
|
|||
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.SharePoint.Sps30")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyProduct("WebsitePanel.Providers.SharePoint.Sps30")]
|
||||
[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("7a4880a9-99ba-4fa9-8328-eccafaff7d23")]
|
|
@ -0,0 +1,225 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace WebsitePanel.Providers.SharePoint
|
||||
{
|
||||
public class Sps30 : Sps20
|
||||
{
|
||||
private static readonly string Wss3RegistryKey = @"SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0";
|
||||
|
||||
#region Constants
|
||||
private const string SHAREPOINT_REGLOC = @"SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0";
|
||||
#endregion
|
||||
|
||||
#region Sites
|
||||
public override void ExtendVirtualServer(SharePointSite site)
|
||||
{
|
||||
AppDomain domain = null;
|
||||
try
|
||||
{
|
||||
domain = CreateAppDomain();
|
||||
Sps30Remote wss = CreateSps30Remote(domain);
|
||||
|
||||
// call method
|
||||
wss.ExtendVirtualServer(site, ExclusiveNTLM);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (domain != null)
|
||||
AppDomain.Unload(domain);
|
||||
}
|
||||
}
|
||||
|
||||
public override void UnextendVirtualServer(string url, bool deleteContent)
|
||||
{
|
||||
AppDomain domain = null;
|
||||
try
|
||||
{
|
||||
domain = CreateAppDomain();
|
||||
Sps30Remote wss = CreateSps30Remote(domain);
|
||||
|
||||
// call method
|
||||
wss.UnextendVirtualServer(url, deleteContent);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (domain != null)
|
||||
AppDomain.Unload(domain);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Backup/Restore
|
||||
public override string BackupVirtualServer(string url, string fileName, bool zipBackup)
|
||||
{
|
||||
AppDomain domain = null;
|
||||
try
|
||||
{
|
||||
domain = CreateAppDomain();
|
||||
Sps30Remote wss = CreateSps30Remote(domain);
|
||||
|
||||
// call method
|
||||
return wss.BackupVirtualServer(url, fileName, zipBackup);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (domain != null)
|
||||
AppDomain.Unload(domain);
|
||||
}
|
||||
}
|
||||
|
||||
public override void RestoreVirtualServer(string url, string fileName)
|
||||
{
|
||||
AppDomain domain = null;
|
||||
try
|
||||
{
|
||||
domain = CreateAppDomain();
|
||||
Sps30Remote wss = CreateSps30Remote(domain);
|
||||
|
||||
// call method
|
||||
wss.RestoreVirtualServer(url, fileName);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (domain != null)
|
||||
AppDomain.Unload(domain);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Web Parts
|
||||
public override string[] GetInstalledWebParts(string url)
|
||||
{
|
||||
AppDomain domain = null;
|
||||
try
|
||||
{
|
||||
domain = CreateAppDomain();
|
||||
Sps30Remote wss = CreateSps30Remote(domain);
|
||||
|
||||
// call method
|
||||
return wss.GetInstalledWebParts(url);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (domain != null)
|
||||
AppDomain.Unload(domain);
|
||||
}
|
||||
}
|
||||
|
||||
public override void InstallWebPartsPackage(string url, string fileName)
|
||||
{
|
||||
AppDomain domain = null;
|
||||
try
|
||||
{
|
||||
domain = CreateAppDomain();
|
||||
Sps30Remote wss = CreateSps30Remote(domain);
|
||||
|
||||
// call method
|
||||
wss.InstallWebPartsPackage(url, fileName);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (domain != null)
|
||||
AppDomain.Unload(domain);
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeleteWebPartsPackage(string url, string packageName)
|
||||
{
|
||||
AppDomain domain = null;
|
||||
try
|
||||
{
|
||||
domain = CreateAppDomain();
|
||||
Sps30Remote wss = CreateSps30Remote(domain);
|
||||
|
||||
// call method
|
||||
wss.DeleteWebPartsPackage(url, packageName);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (domain != null)
|
||||
AppDomain.Unload(domain);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Helpers
|
||||
protected override string GetAdminToolPath()
|
||||
{
|
||||
RegistryKey spKey = Registry.LocalMachine.OpenSubKey(SHAREPOINT_REGLOC);
|
||||
if (spKey == null)
|
||||
throw new Exception("SharePoint Services is not installed on the system");
|
||||
|
||||
return ((string)spKey.GetValue("Location")) + @"\bin\stsadm.exe";
|
||||
}
|
||||
|
||||
protected override bool IsSharePointInstalled()
|
||||
{
|
||||
RegistryKey spKey = Registry.LocalMachine.OpenSubKey(SHAREPOINT_REGLOC);
|
||||
if (spKey == null)
|
||||
return false;
|
||||
|
||||
string spVal = (string)spKey.GetValue("SharePoint");
|
||||
return (String.Compare(spVal, "installed", true) == 0);
|
||||
}
|
||||
|
||||
private AppDomain CreateAppDomain()
|
||||
{
|
||||
string binPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin");
|
||||
|
||||
AppDomainSetup info = new AppDomainSetup();
|
||||
info.ApplicationBase = binPath;
|
||||
|
||||
return AppDomain.CreateDomain("WSS30", null, info);
|
||||
}
|
||||
|
||||
private Sps30Remote CreateSps30Remote(AppDomain domain)
|
||||
{
|
||||
return (Sps30Remote)domain.CreateInstanceAndUnwrap(
|
||||
typeof(Sps30Remote).Assembly.FullName,
|
||||
typeof(Sps30Remote).FullName);
|
||||
}
|
||||
#endregion
|
||||
|
||||
public override bool IsInstalled()
|
||||
{
|
||||
RegistryKey spKey = Registry.LocalMachine.OpenSubKey(Wss3RegistryKey);
|
||||
if (spKey == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
string spVal = (string)spKey.GetValue("SharePoint");
|
||||
return (String.Compare(spVal, "installed", true) == 0);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,314 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Reflection;
|
||||
using System.Security.Principal;
|
||||
using Microsoft.Win32;
|
||||
|
||||
using WebsitePanel.Providers.OS;
|
||||
using WebsitePanel.Providers.Utils;
|
||||
using WebsitePanel.Server.Utils;
|
||||
|
||||
using Microsoft.SharePoint;
|
||||
using Microsoft.SharePoint.Utilities;
|
||||
using Microsoft.SharePoint.Administration;
|
||||
|
||||
namespace WebsitePanel.Providers.SharePoint
|
||||
{
|
||||
public class Sps30Remote : MarshalByRefObject
|
||||
{
|
||||
public void ExtendVirtualServer(SharePointSite site, bool exclusiveNTLM)
|
||||
{
|
||||
try
|
||||
{
|
||||
WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate();
|
||||
|
||||
string siteUrl = "http://" + site.Name;
|
||||
|
||||
// check input parameters
|
||||
if (String.IsNullOrEmpty(site.RootFolder)
|
||||
|| !Directory.Exists(site.RootFolder))
|
||||
throw new Exception("Could not create SharePoint site, because web site root folder does not exist. Open web site properties and click \"Update\" button to re-create site folder.");
|
||||
|
||||
SPWebApplication app = SPWebApplication.Lookup(new Uri(siteUrl));
|
||||
if (app != null)
|
||||
throw new Exception("SharePoint is already installed on this web site.");
|
||||
|
||||
//SPFarm farm = SPFarm.Local;
|
||||
SPFarm farm = SPFarm.Local;
|
||||
SPWebApplicationBuilder builder = new SPWebApplicationBuilder(farm);
|
||||
builder.ApplicationPoolId = site.ApplicationPool;
|
||||
builder.DatabaseServer = site.DatabaseServer;
|
||||
builder.DatabaseName = site.DatabaseName;
|
||||
builder.DatabaseUsername = site.DatabaseUser;
|
||||
builder.DatabasePassword = site.DatabasePassword;
|
||||
|
||||
builder.ServerComment = site.Name;
|
||||
builder.HostHeader = site.Name;
|
||||
builder.Port = 80;
|
||||
|
||||
builder.RootDirectory = new DirectoryInfo(site.RootFolder);
|
||||
builder.DefaultZoneUri = new Uri(siteUrl);
|
||||
builder.UseNTLMExclusively = exclusiveNTLM;
|
||||
|
||||
app = builder.Create();
|
||||
app.Name = site.Name;
|
||||
|
||||
app.Sites.Add(siteUrl, null, null, (uint)site.LocaleID, null, site.OwnerLogin, null, site.OwnerEmail);
|
||||
|
||||
app.Update();
|
||||
app.Provision();
|
||||
|
||||
wic.Undo();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
try
|
||||
{
|
||||
// try to delete app if it was created
|
||||
SPWebApplication app = SPWebApplication.Lookup(new Uri("http://" + site.Name));
|
||||
if (app != null)
|
||||
app.Delete();
|
||||
}
|
||||
catch { /* nop */ }
|
||||
|
||||
throw new Exception("Error creating SharePoint site", ex);
|
||||
}
|
||||
}
|
||||
|
||||
public void UnextendVirtualServer(string url, bool deleteContent)
|
||||
{
|
||||
try
|
||||
{
|
||||
WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate();
|
||||
|
||||
Uri uri = new Uri("http://" + url);
|
||||
SPWebApplication app = SPWebApplication.Lookup(uri);
|
||||
if (app == null)
|
||||
return;
|
||||
|
||||
SPGlobalAdmin adm = new SPGlobalAdmin();
|
||||
adm.UnextendVirtualServer(uri, false);
|
||||
|
||||
//typeof(SPWebApplication).InvokeMember("UnprovisionIisWebSitesAsAdministrator",
|
||||
// BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.InvokeMethod,
|
||||
// null, null, new object[] { false, new string[] { url }, app.ApplicationPool });
|
||||
//app.Unprovision();
|
||||
app.Delete();
|
||||
|
||||
wic.Undo();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("Could not uninstall SharePoint from the web site", ex);
|
||||
}
|
||||
}
|
||||
|
||||
public string BackupVirtualServer(string url, string fileName, bool zipBackup)
|
||||
{
|
||||
try
|
||||
{
|
||||
WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate();
|
||||
|
||||
string tempPath = Path.GetTempPath();
|
||||
string bakFile = Path.Combine(tempPath, (zipBackup
|
||||
? StringUtils.CleanIdentifier(url) + ".bsh"
|
||||
: StringUtils.CleanIdentifier(fileName)));
|
||||
|
||||
SPWebApplication app = SPWebApplication.Lookup(new Uri("http://" + url));
|
||||
if (app == null)
|
||||
throw new Exception("SharePoint is not installed on the web site");
|
||||
|
||||
// backup
|
||||
app.Sites.Backup("http://" + url, bakFile, true);
|
||||
|
||||
// zip backup file
|
||||
if (zipBackup)
|
||||
{
|
||||
string zipFile = Path.Combine(tempPath, fileName);
|
||||
string zipRoot = Path.GetDirectoryName(bakFile);
|
||||
|
||||
// zip files
|
||||
FileUtils.ZipFiles(zipFile, zipRoot, new string[] { Path.GetFileName(bakFile) });
|
||||
|
||||
// delete data files
|
||||
FileUtils.DeleteFile(bakFile);
|
||||
|
||||
bakFile = zipFile;
|
||||
}
|
||||
|
||||
wic.Undo();
|
||||
|
||||
return bakFile;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("Could not backup SharePoint site", ex);
|
||||
}
|
||||
}
|
||||
|
||||
public void RestoreVirtualServer(string url, string fileName)
|
||||
{
|
||||
try
|
||||
{
|
||||
WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate();
|
||||
|
||||
SPWebApplication app = SPWebApplication.Lookup(new Uri("http://" + url));
|
||||
if (app == null)
|
||||
throw new Exception("SharePoint is not installed on the web site");
|
||||
|
||||
string tempPath = Path.GetTempPath();
|
||||
|
||||
// unzip uploaded files if required
|
||||
string expandedFile = fileName;
|
||||
if (Path.GetExtension(fileName).ToLower() == ".zip")
|
||||
{
|
||||
// unpack file
|
||||
expandedFile = FileUtils.UnzipFiles(fileName, tempPath)[0];
|
||||
|
||||
// delete zip archive
|
||||
FileUtils.DeleteFile(fileName);
|
||||
}
|
||||
|
||||
// delete site
|
||||
SPSiteAdministration site = new SPSiteAdministration("http://" + url);
|
||||
site.Delete(false);
|
||||
|
||||
// restore from backup
|
||||
app.Sites.Restore("http://" + url, expandedFile, true);
|
||||
|
||||
// delete expanded file
|
||||
FileUtils.DeleteFile(expandedFile);
|
||||
|
||||
wic.Undo();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("Could not restore SharePoint site", ex);
|
||||
}
|
||||
}
|
||||
|
||||
public string[] GetInstalledWebParts(string url)
|
||||
{
|
||||
try
|
||||
{
|
||||
WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate();
|
||||
|
||||
SPGlobalAdmin adm = new SPGlobalAdmin();
|
||||
string lines = adm.EnumWPPacks(null, "http://" + url, false);
|
||||
|
||||
List<string> list = new List<string>();
|
||||
|
||||
if(!String.IsNullOrEmpty(lines))
|
||||
{
|
||||
string line = null;
|
||||
StringReader reader = new StringReader(lines);
|
||||
while ((line = reader.ReadLine()) != null)
|
||||
{
|
||||
line = line.Trim();
|
||||
int commaIdx = line.IndexOf(",");
|
||||
if (!String.IsNullOrEmpty(line) && commaIdx != -1)
|
||||
list.Add(line.Substring(0, commaIdx));
|
||||
}
|
||||
}
|
||||
|
||||
wic.Undo();
|
||||
|
||||
return list.ToArray();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("Error reading web parts packages", ex);
|
||||
}
|
||||
}
|
||||
|
||||
public void InstallWebPartsPackage(string url, string fileName)
|
||||
{
|
||||
try
|
||||
{
|
||||
WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate();
|
||||
|
||||
string tempPath = Path.GetTempPath();
|
||||
|
||||
// unzip uploaded files if required
|
||||
string expandedFile = fileName;
|
||||
if (Path.GetExtension(fileName).ToLower() == ".zip")
|
||||
{
|
||||
// unpack file
|
||||
expandedFile = FileUtils.UnzipFiles(fileName, tempPath)[0];
|
||||
|
||||
// delete zip archive
|
||||
FileUtils.DeleteFile(fileName);
|
||||
}
|
||||
|
||||
StringWriter errors = new StringWriter();
|
||||
|
||||
SPGlobalAdmin adm = new SPGlobalAdmin();
|
||||
int result = adm.AddWPPack(expandedFile, null, 0, "http://" + url, false, true, errors);
|
||||
if (result > 1)
|
||||
throw new Exception("Error installing web parts package: " + errors.ToString());
|
||||
|
||||
// delete expanded file
|
||||
FileUtils.DeleteFile(expandedFile);
|
||||
|
||||
wic.Undo();
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("Could not install web parts package", ex);
|
||||
}
|
||||
}
|
||||
|
||||
public void DeleteWebPartsPackage(string url, string packageName)
|
||||
{
|
||||
try
|
||||
{
|
||||
WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate();
|
||||
|
||||
StringWriter errors = new StringWriter();
|
||||
|
||||
SPGlobalAdmin adm = new SPGlobalAdmin();
|
||||
int result = adm.RemoveWPPack(packageName, 0, "http://" + url, errors);
|
||||
if (result > 1)
|
||||
throw new Exception("Error uninstalling web parts package: " + errors.ToString());
|
||||
|
||||
wic.Undo();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("Could not uninstall web parts package", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,115 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{67B126AA-56E5-42F7-AC4F-AEE2A7D786F2}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>WebsitePanel.Providers.SharePoint</RootNamespace>
|
||||
<AssemblyName>WebsitePanel.Providers.SharePoint.Sps30</AssemblyName>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\WebsitePanel.Server\bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<WarningsAsErrors>
|
||||
</WarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\WebsitePanel.Server\bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<WarningsAsErrors>
|
||||
</WarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.SharePoint">
|
||||
<HintPath>..\..\Lib\References\Microsoft\Microsoft.SharePoint.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\VersionInfo.cs">
|
||||
<Link>VersionInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="Sps30.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Sps30Remote.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\WebsitePanel.Providers.Base\WebsitePanel.Providers.Base.csproj">
|
||||
<Project>{684C932A-6C75-46AC-A327-F3689D89EB42}</Project>
|
||||
<Name>WebsitePanel.Providers.Base</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\WebsitePanel.Providers.SharePoint.Sps20\WebsitePanel.Providers.SharePoint.Sps20.csproj">
|
||||
<Project>{7980CF32-62ED-4BA1-9CAE-8EE7BD164719}</Project>
|
||||
<Name>WebsitePanel.Providers.SharePoint.Sps20</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\WebsitePanel.Server.Utils\WebsitePanel.Server.Utils.csproj">
|
||||
<Project>{E91E52F3-9555-4D00-B577-2B1DBDD87CA7}</Project>
|
||||
<Name>WebsitePanel.Server.Utils</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Windows Installer 3.1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue