Skip to content

Getting Started

Taiizor edited this page Feb 27, 2023 · 27 revisions

So how do I start?

Installation

Skylark is distributed via Microsofts package manager NuGet. We refer to this page for detailed descriptions on how to get started/use NuGet. Here is a link to the Skylark NuGet package.

Using NuGet

By Package Manager (PM):

Install-Package Skylark

By .NET CLI:

dotnet add package Skylark

As DLL

Simply place the Skylark DLL into your .NET project and add a reference to it. Please keep in mind that the .NET version of your solution must match with the runtime version of the Skylark DLL (currently compiled with .NET Standard 2.0 & 2.1).

Example application

The complete example below shows you how to encrypt and decrypt a url address.

1. Create a new Console Application project

2. Install the Skylark package

At a shell prompt in the project directory, type:

By Package Manager (PM):

Install-Package Skylark.Standard

By .NET CLI:

dotnet add package Skylark.Standard

3. Add the following code to Program.cs

using Skylark.Standard.Extension.Url;

namespace SkylarkExample
{
    private const string Url = "https://www.google.com/search?q=Taiizor+Skylark";

    internal class Program
    {
        static void Main()
        {
            string Encode = UrlExtension.Encode(Url);
            Console.WriteLine(Encode);

            string Decode = UrlExtension.Decode(Encode);
            Console.WriteLine(Decode);
        }
    }
}

4. Run the program

Skylark Getting Started Example

Clone this wiki locally