SharePointHelper.Core.3.1 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SharePointHelper.Core.3.1 --version 1.0.0
NuGet\Install-Package SharePointHelper.Core.3.1 -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SharePointHelper.Core.3.1" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SharePointHelper.Core.3.1 --version 1.0.0
#r "nuget: SharePointHelper.Core.3.1, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SharePointHelper.Core.3.1 as a Cake Addin
#addin nuget:?package=SharePointHelper.Core.3.1&version=1.0.0

// Install SharePointHelper.Core.3.1 as a Cake Tool
#tool nuget:?package=SharePointHelper.Core.3.1&version=1.0.0

This package helps you do certain functionalities on SharePoint using C# .NET code which isn't directly available from Microsoft.Graph

Currently, it supports just one feature: CreateFolder(), which helps you create a folder in a URI provided. It ensures that, if the folder doesn't exist already, it creates a new one, ignore it otherwise.

Here is an example of how to use the package after downloading it.

using SharePointHelper;

namespace TestLibrary
{
    public class YourClass 
    {
       private async Task MyMethod()
        {
            
           // There are two things you'll need to do to create folders in the Sharepoint directory
           // One - Create and Set AzureConfiguration object with all details shown below
           // Two - Pass the configuration object along with the destination directory path in the shown format


            // Ensure to set all properties of configuration
            AzureConfiguration configuration = new AzureConfiguration();

            configuration.ClientId = "Enter client id";
            configuration.ClientSecret = "Enter client secret";
            configuration.SiteName = "MySiteName"; // Just copy the sitename from the endpoint like this "https://{OrganizationName}.sharepoint.com/sites/{MySiteName}"

            configuration.Endpoint = "https://{OrganizationName}.sharepoint.com";
            configuration.TenantId = "Enter tenant id";


            SharePointService sharePointService = new SharePointService();


           //  Call the method
           //  This method would recursively check and confirm if the path "/RootFolder/Folder1/Folder2" really exists.
           //  If it doesn't and then it creates one i.e. if Folder1 doesn't exist, then it first create one under RootFolder, 
           //  and then create Folder2, before creating MyFolder3

           await sharePointService.CreateFolder(configuration,"/RootFolder/Folder1/Folder2","MyFolder3");  // Be extra careful of the slashes

           // The outcome of the above method's execution is it would create "/RootFolder/Folder1/Folder2/MyFolder3"
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 372 5/31/2022
1.2.0 377 5/31/2022
1.1.0 402 5/31/2022
1.0.0 418 5/30/2022