Rystem.Content.Infrastructure.M365.Sharepoint
10.0.6
dotnet add package Rystem.Content.Infrastructure.M365.Sharepoint --version 10.0.6
NuGet\Install-Package Rystem.Content.Infrastructure.M365.Sharepoint -Version 10.0.6
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="Rystem.Content.Infrastructure.M365.Sharepoint" Version="10.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rystem.Content.Infrastructure.M365.Sharepoint" Version="10.0.6" />
<PackageReference Include="Rystem.Content.Infrastructure.M365.Sharepoint" />
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 Rystem.Content.Infrastructure.M365.Sharepoint --version 10.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rystem.Content.Infrastructure.M365.Sharepoint, 10.0.6"
#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 Rystem.Content.Infrastructure.M365.Sharepoint@10.0.6
#: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=Rystem.Content.Infrastructure.M365.Sharepoint&version=10.0.6
#tool nuget:?package=Rystem.Content.Infrastructure.M365.Sharepoint&version=10.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
What is Rystem?
Get information
https://<tenant>.sharepoint.com/sites/<site-url>/_api/site/id
Integration with Sharepoint online and Content Repository
await services
.AddContentRepository()
.WithSharepointIntegrationAsync(x =>
{
x.TenantId = configuration["Sharepoint:TenantId"];
x.ClientId = configuration["Sharepoint:ClientId"];
x.ClientSecret = configuration["Sharepoint:ClientSecret"];
x.MapWithSiteNameAndDocumentLibraryName("TestNumberOne", "Foglione");
//x.MapWithRootSiteAndDocumentLibraryName("Foglione");
//x.MapWithSiteIdAndDocumentLibraryId(configuration["Sharepoint:SiteId"],
// configuration["Sharepoint:DocumentLibraryId"]);
}, "sharepoint")
.NoContext();
How to use in a business class
public class AllStorageTest
{
private readonly IContentRepositoryFactory _contentRepositoryFactory;
private readonly Utility _utility;
public AllStorageTest(IContentRepositoryFactory contentRepositoryFactory, Utility utility)
{
_contentRepositoryFactory = contentRepositoryFactory;
_utility = utility;
}
public async Task ExecuteAsync()
{
var _contentRepository = _contentRepositoryFactory.Create("sharepoint");
var file = await _utility.GetFileAsync();
var name = "folder/file.png";
var contentType = "images/png";
var metadata = new Dictionary<string, string>()
{
{ "name", "ale" }
};
var tags = new Dictionary<string, string>()
{
{ "version", "1" }
};
var response = await _contentRepository.ExistAsync(name).NoContext();
if (response)
{
await _contentRepository.DeleteAsync(name).NoContext();
response = await _contentRepository.ExistAsync(name).NoContext();
}
Assert.False(response);
response = await _contentRepository.UploadAsync(name, file.ToArray(), new ContentRepositoryOptions
{
HttpHeaders = new ContentRepositoryHttpHeaders
{
ContentType = contentType
},
Metadata = metadata,
Tags = tags
}, true).NoContext();
Assert.True(response);
response = await _contentRepository.ExistAsync(name).NoContext();
Assert.True(response);
var options = await _contentRepository.GetPropertiesAsync(name, ContentInformationType.All).NoContext();
Assert.NotNull(options.Uri);
foreach (var x in metadata)
{
Assert.Equal(x.Value, options.Options.Metadata[x.Key]);
}
foreach (var x in tags)
{
Assert.Equal(x.Value, options.Options.Tags[x.Key]);
}
Assert.Equal(contentType, options.Options.HttpHeaders.ContentType);
metadata.Add("ale2", "single");
response = await _contentRepository.SetPropertiesAsync(name, new ContentRepositoryOptions
{
HttpHeaders = new ContentRepositoryHttpHeaders
{
ContentType = contentType
},
Metadata = metadata,
Tags = tags
}).NoContext();
Assert.True(response);
options = await _contentRepository.GetPropertiesAsync(name, ContentInformationType.All).NoContext();
Assert.Equal("single", options.Options.Metadata["ale2"]);
response = await _contentRepository.DeleteAsync(name).NoContext();
Assert.True(response);
response = await _contentRepository.ExistAsync(name).NoContext();
Assert.False(response);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Azure.Identity (>= 1.18.0)
- Microsoft.Graph (>= 5.103.0)
- Rystem.Content.Abstractions (>= 10.0.6)
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 |
|---|---|---|
| 10.0.6 | 60,179 | 3/3/2026 |
| 10.0.5 | 95 | 2/22/2026 |
| 10.0.4 | 102 | 2/9/2026 |
| 10.0.3 | 147,899 | 1/28/2026 |
| 10.0.1 | 209,072 | 11/12/2025 |
| 9.1.3 | 244 | 9/2/2025 |
| 9.1.2 | 764,489 | 5/29/2025 |
| 9.1.1 | 97,808 | 5/2/2025 |
| 9.0.32 | 186,712 | 4/15/2025 |
| 9.0.31 | 5,807 | 4/2/2025 |
| 9.0.30 | 88,830 | 3/26/2025 |
| 9.0.29 | 9,028 | 3/18/2025 |
| 9.0.28 | 241 | 3/17/2025 |
| 9.0.27 | 270 | 3/16/2025 |
| 9.0.26 | 284 | 3/13/2025 |
| 9.0.25 | 52,116 | 3/9/2025 |
| 9.0.21 | 335 | 3/6/2025 |
| 9.0.20 | 19,614 | 3/6/2025 |
| 9.0.19 | 340 | 3/6/2025 |
| 9.0.18 | 331 | 3/4/2025 |
Loading failed