EzSmb 1.3.10

.NET Standard 2.0
dotnet add package EzSmb --version 1.3.10
NuGet\Install-Package EzSmb -Version 1.3.10
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="EzSmb" Version="1.3.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EzSmb --version 1.3.10
#r "nuget: EzSmb, 1.3.10"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EzSmb as a Cake Addin
#addin nuget:?package=EzSmb&version=1.3.10

// Install EzSmb as a Cake Tool
#tool nuget:?package=EzSmb&version=1.3.10

EzSmb

SMB(Windows shared folder) Client Library powered by TalAloni's SmbLibrary, Xamarin & .NET Core Ready.

NuGet

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

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:

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

LGPL v3 Licence

Author

Do-Be's

Contributors

upcu
synmra
icnocop
DenisKrasakovSDV

#What did I do wrong operation? synmra was not added to sidebar...

GitHub - TalAloni/SMBLibrary: SMB client & server implements.
https://github.com/TalAloni/SMBLibrary

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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.3.10 22,283 3/3/2022
1.3.9 23,153 7/13/2021
1.3.8 1,160 6/29/2021
1.3.5 282 6/25/2021
1.3.1 660 6/10/2021
1.3.0 208 6/10/2021
1.2.0 629 5/24/2021
1.1.0 239 5/23/2021
1.0.7 466 5/16/2021
1.0.6 239 5/15/2021
1.0.5 332 5/11/2021
1.0.4 207 5/11/2021
1.0.3 206 5/10/2021
1.0.2 206 5/10/2021
1.0.1 238 5/6/2021
1.0.0 235 5/6/2021

Show NTStatus in error message.