Skip to main content

How to Download the StremioDotNet Package for .NET 6.0, 7.0, or 8.0

To download and install the StremioDotNet package for specific versions of .NET (6.0, 7.0, or 8.0), you can use either the NuGet command-line tool, Visual Studio, or the .NET CLI.

1. Using the NuGet Command Line Tool

Install the StremioDotNet Package

  1. Open your terminal or command prompt.

  2. To install the package, run the following command:

    nuget install StremioDotNet
    

    This will download the latest version of the package that is compatible with your environment.

Install a Specific Version for .NET

If you need to install a specific version of the StremioDotNet package for a particular version of .NET, you can use the -Version flag to specify the version of the package.

For example, to install version 1.0.0 of StremioDotNet, run:

nuget install StremioDotNet -Version 1.0.0

2. Using the .NET CLI (dotnet)

If you're working with .NET 6.0, 7.0, or 8.0, you can use the dotnet add package command to add StremioDotNet directly to your project.

Add the Package to Your Project

  1. Open a terminal or command prompt.
  2. Navigate to the directory of your .NET project.
  3. Run the following command to add StremioDotNet:
    dotnet add package StremioDotNet
    

Target a Specific Version of .NET

The dotnet add package command automatically resolves the correct version of the package for your project's target framework. However, if you want to ensure compatibility with a specific version of .NET (e.g., .NET 6.0, 7.0, or 8.0), you need to target that version in your project file.

You can check or set the target framework for your project in the .csproj file, like so:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework> <!-- or net7.0, net6.0 -->
  </PropertyGroup>

</Project>

Then, run:

dotnet restore

This will restore the dependencies for your project, including the StremioDotNet package, based on the target framework version.


3. Using Visual Studio

Add the StremioDotNet Package to Your Project

  1. Open Visual Studio.
  2. Right-click on your project in the Solution Explorer and select Manage NuGet Packages.
  3. Go to the Browse tab and search for StremioDotNet.
  4. Select the package and click Install.

Ensure your project is targeting .NET 6.0, .NET 7.0, or .NET 8.0 in the Target Framework section under the Properties tab.


4. Check Compatibility

Make sure the version of StremioDotNet you're installing supports the version of .NET you're targeting. You can check the supported frameworks for the package on NuGet.org.


That's it! You’ve now installed the StremioDotNet package in your project, compatible with .NET 6.0, 7.0, or 8.0.