AppUtils.ByLucasFsousa 1.0.1

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package AppUtils.ByLucasFsousa --version 1.0.1
NuGet\Install-Package AppUtils.ByLucasFsousa -Version 1.0.1
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="AppUtils.ByLucasFsousa" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AppUtils.ByLucasFsousa --version 1.0.1
#r "nuget: AppUtils.ByLucasFsousa, 1.0.1"
#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 AppUtils.ByLucasFsousa as a Cake Addin
#addin nuget:?package=AppUtils.ByLucasFsousa&version=1.0.1

// Install AppUtils.ByLucasFsousa as a Cake Tool
#tool nuget:?package=AppUtils.ByLucasFsousa&version=1.0.1

App Utils

App Utils is a library that contains utilities for asp.net / .net / c# application development

Installation

Use the package manager nuget to install App Utils.

install-package App.Utils

Usage

using App.Utils // call Namespace

// ================= examples of use of the XSystem class =================

//creates and runs a script.bat 
string[] commands = new { "echo Hello", "echo World" };
int exitCode = All.XSystem.RunCmdScript(commands);

// returns a list of files from the indicated path
List<FileInfo> files = All.XSystem.GrabFilesFromFolder(@"C:\MyDocs");

// gets all processes that have "chrome" signature or similar
List<Process> processes = All.XSystem.GetAllProcessByName("chrome", true);

// ================= examples of use of the XSql class =================

// run a sql using SqlServer and returns a data table
SqlCommand sqlCommand = new SqlCommand();
string errorMessage;

sqlCommand.CommandText = "select * from yourTable";
All.XSql xSql = new All.XSql(@"your connection string here", sqlCommand);
DataTable table = xSql.ReturnData(out errorMessage);

// run a void sql statement using SqlServer
SqlCommand sqlCommand= new SqlCommand();
string errorMessage;

sqlCommand.CommandText = "insert into yourTable values (@stringExample, @integerExample, @floatExample)";
sqlCommand.Parameters.AddWithValue("@stringExample", "Hello"); // PARAM
sqlCommand.Parameters.AddWithValue("@integerExample", 1); // PARAM
sqlCommand.Parameters.AddWithValue("@floatExample", 5.5); // PARAM
All.XSql xSql = new All.XSql(@"your connection string here", sqlCommand);
xSql.GoExec(out errorMessage);

// ================= examples of use of the XScreen class =================

// gets the dimensions of the main screen
int desktopWidth = All.XScreen.DesktopWidth;
int desktopHeight = All.XScreen.DesktopHeight;

// Simulates a mouse click in the center of the screen
All.XScreen.ClickAt(desktopWidth / 2, desktopHeight / 2);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
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