VOOZH about

URL: https://www.nuget.org/packages/SharePointHelper.Core.3.1/

⇱ NuGet Gallery | SharePointHelper.Core.3.1 1.2.1




SharePointHelper.Core.3.1 1.2.1

dotnet add package SharePointHelper.Core.3.1 --version 1.2.1
 
 
NuGet\Install-Package SharePointHelper.Core.3.1 -Version 1.2.1
 
 
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.2.1" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharePointHelper.Core.3.1" Version="1.2.1" />
 
Directory.Packages.props
<PackageReference Include="SharePointHelper.Core.3.1" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SharePointHelper.Core.3.1 --version 1.2.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SharePointHelper.Core.3.1, 1.2.1"
 
 
#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.
#:package SharePointHelper.Core.3.1@1.2.1
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SharePointHelper.Core.3.1&version=1.2.1
 
Install as a Cake Addin
#tool nuget:?package=SharePointHelper.Core.3.1&version=1.2.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NuGet packages

These packages help you with a wrapper to do certain functionalities on SharePoint using C# .NET code which aren't directly available from Microsoft.Graph

Features supported

  • Task<DriveItem> CreateFolder(AzureConfiguration configuration, string uri, string folderName); It 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.

  • Task SafeCreateDirectory(AzureConfiguration configuration, string uri); Creates the passed uri in the sharepoint site. Say for instance in Example: /RootFolder/Folder1/Folder2 if theFolder1 doesn't exist, it creates it first and then create Folder2 under it

  • Task<string> DownloadFile(AzureConfiguration configuration, string fileId); Downloads the file as .docx format and returns the download location

  • Task<DriveItem> MoveFile(AzureConfiguration configuration, string destinationUri, string destinationFileName, string sourceUri, string sourceFileName); Moves source file by grabbing it from its sourceUri and sourceFileName to the destination location identified by its destinationUri

  • Task<DriveItem> CopyFile(AzureConfiguration configuration, string destinationUri, string destinationFileName, string sourceUri, string sourceFileName); Copies source file by grabbing it from its sourceUri and sourceFileName to the destination location identified by its destinationUri

Quickstarter

You can just download the solution zip from this repository and make changes based on your needs

Usage

using SharePointHelper;

namespace TestLibrary
{
 public class YourClass 
 {
 private async Task MyMethod()
 {
 
 AzureConfiguration configuration = new AzureConfiguration(
 "Azure ClientId", "Azure ClientSecret", "Azure TenantId", "SharePoint SiteName", "SharePoint site's endPoint");

 // Example:
 // Endpoint "https://dummyorganization.sharepoint.com"

 // "https://dummyorganization.sharepoint.com/sites/TestingSite"
 // SiteName "TestingSite" 



 SharePointService sharePointService = new SharePointService();
 
 
 DriveItem newFolderDriveItem = await sharePointService.CreateFolder(configuration, "/root/Folder1/Folder2", "Folder3");

 string downloadedPath = await sharePointService.DownloadFile(configuration, "XXXX");

 await sharePointService.SafeCreateDirectory(configuration,"/root/FolderA/FolderB");

 DriveItem movedDriveItem = await sharePointService.MoveFile(configuration,
 "/root/Folder1/dst", "dst.docx",
 "/root/Folder1/src", "src.docx");

 DriveItem copiedDriveItem = await sharePointService.CopyFile(configuration,
 "/root/Folder1/dst", "dst.docx",
 "/root/Folder1/src", "src.docx");
 }
 }
}

Wishing you a better day. Thank you 😃

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp3.1 netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

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 464 5/31/2022
1.2.0 563 5/31/2022
1.1.0 700 5/31/2022 1.1.0 is deprecated because it has critical bugs.
1.0.0 792 5/30/2022