EzSmb 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package EzSmb --version 1.0.3                
NuGet\Install-Package EzSmb -Version 1.0.3                
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.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EzSmb --version 1.0.3                
#r "nuget: EzSmb, 1.0.3"                
#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 EzSmb as a Cake Addin
#addin nuget:?package=EzSmb&version=1.0.3

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

EzSmb

SMB(Windows shared folder) Clinet 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 >= 1.4.6.1
NETStandard.Library >= 2.0.3

Usage

Add NuGet Package to your project.

> 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: Examples, Namespace

Licence

LGPL v3 Licence

Author

Do-Be's

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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on EzSmb:

Package Downloads
PiBox.Plugins.Persistence.Smb

PiBox is a `service hosting framework` that allows `.net devs` to `decorate their services with behaviours or functionality (think of plugins) while only using minimal configuration`.

Blobject.CIFS

BLOB storage client for CIFS and SMB file servers, e.g. Windows and SAMBA. Refer to other Blobject packages for other storage repository types.

SmartTender.DocumentService.NetFramework

Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.10 248,293 3/3/2022
1.3.9 44,317 7/13/2021
1.3.8 1,872 6/29/2021
1.3.5 803 6/25/2021
1.3.1 1,250 6/10/2021
1.3.0 717 6/10/2021
1.2.0 1,179 5/24/2021
1.1.0 752 5/23/2021
1.0.7 993 5/16/2021
1.0.6 768 5/15/2021
1.0.5 891 5/11/2021
1.0.4 717 5/11/2021
1.0.3 685 5/10/2021
1.0.2 694 5/10/2021
1.0.1 748 5/6/2021
1.0.0 799 5/6/2021

Fix static Node.GetServers method, only giving one response.