vshed.IO.UncShare 1.0.0

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

// Install vshed.IO.UncShare as a Cake Tool
#tool nuget:?package=vshed.IO.UncShare&version=1.0.0

vshed.IO.UncShare

Library for accessing UNC Shares with an alternative identity

Example Usage

try
{
    using (var share = new UncShare(@"\\hostName\networkShareName", "userAccount", "password"))
    {
        var dir = new DirectoryInfo(share.Path);
        Assert.IsTrue(dir.GetFiles().Length >= 1);
    }
}
catch (System.ComponentModel.Win32Exception ex)
{
    if (ex.Message == "The network path was not found")
        Console.WriteLine("The specified UNC Path could not be found");
    else if (ex.Message == "The user name or password is incorrect")
        Console.WriteLine("The specified Username or Password is invalid");
    else
        Console.WriteLine(ex.Message);
}
Product Compatible and additional computed target framework versions.
.NET Framework net47 is compatible.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.0.2 1,368 10/17/2020
1.0.1 691 3/10/2019
1.0.0 527 3/9/2019

Initial release