EzSmb.Next
1.3.11
dotnet add package EzSmb.Next --version 1.3.11
NuGet\Install-Package EzSmb.Next -Version 1.3.11
<PackageReference Include="EzSmb.Next" Version="1.3.11" />
<PackageVersion Include="EzSmb.Next" Version="1.3.11" />
<PackageReference Include="EzSmb.Next" />
paket add EzSmb.Next --version 1.3.11
#r "nuget: EzSmb.Next, 1.3.11"
#:package EzSmb.Next@1.3.11
#addin nuget:?package=EzSmb.Next&version=1.3.11
#tool nuget:?package=EzSmb.Next&version=1.3.11
EzSmb
SMB(Windows shared folder) Client Library powered by TalAloni's SmbLibrary, Xamarin & .NET Core Ready.
Description
It's easy to use, and supports SMB ver2 for Windows 10. Xamarin & .NET Core can access Windows Shared Folders and NAS without using mpr.dll or Netapi32.dll. Supports .Net Standard 2.0.
Requirement
SMBLibrary.ForXamarin >= 1.4.6.1 NETStandard.Library >= 2.0.3
Usage
Add NuGet Package to your project.
PM> Install-Package EzSmb.Next
and write code like this:
Get items in shared folder:
//using EzSmb;
//using System;
// Get folder Node.
var folder = await Node.GetNode(@"192.168.0.1\ShareName\FolderName", "userName", "password");
// List items
var nodes = await folder.GetList();
foreach (var node in nodes)
{
Console.WriteLine($"Name: {node.Name}, Type: {node.Type}, LastAccessed: {node.LastAccessed:yyyy-MM-dd HH:mm:ss}");
}
Read file:
//using EzSmb;
//using System;
//using System.Text;
// Get file Node.
var file = await Node.GetNode(@"192.168.0.1\ShareName\FolderName\FileName.txt", "userName", "password");
// Get MemoryStream.
using (var stream = await file.Read())
{
var text = Encoding.UTF8.GetString(stream.ToArray());
Console.WriteLine(text);
}
and more:
- Create new folder/file
- Move folder/file
- Delete folder/file
- Scan servers & shares on LAN
- Authentication
- Random access by Stream
- Get errors
Class Tree: Namespace.md
Breaking changes:
ver1.3.0: The first argument of Node.GetList method has been changed.
Node.GetList(string filter = "*", string relatedPath = null)
// ^^ Inserted ^^ move to second arg
Licence
Author
Contributors
upcu synmra icnocop DenisKrasakovSDV
#What did I do wrong operation? synmra was not added to sidebar...
Links
GitHub - TalAloni/SMBLibrary: SMB client & server implements. https://github.com/TalAloni/SMBLibrary
| Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- SMBLibrary.ForXamarin (>= 1.4.6.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.3.11 | 99 | 6/2/2026 |
Fix Node.Read method, result stream position to zero.