New to Telerik JustMock? Download free 30-day trial

Installation using NuGet package

This topic outlines the steps required to install Telerik JustMock and Telerik JustMock Lite using the NuGet package inside Visual Studio or on the command line.

Installing JustMock

Visual Studio

To install the JustMock NuGet package, first add the Telerik NuGet feed to the package sources using NuGet Package Manager:

  1. Open Visual Studio and go to Tools > NuGet Package Manager > Package Manager Settings.

  2. Select Package Sources, and then select the + button.

  3. In the Name field, enter Telerik.com.

  4. In the Source field, enter https://nuget.telerik.com/v3/index.json, and then select OK.

    The Telerik NuGet feed is available for authorized access at https://nuget.telerik.com/v3/index.json. Note that the previous v2 server, accessible at https://nuget.telerik.com/nuget, is deprecated and is no longer in use.

    Add NuGet Source

Once you have configured Visual Studio to access the Telerik NuGet server, add the JustMock NuGet package to the project:

  1. In Visual Studio, open the solution in which you will use mocking.

  2. Go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution....

  3. From the Package source drop-down, select Telerik.com.

  4. On the Browse tab, search for JustMock.

  5. Select the JustMock.Commercial package, select the desired project, and then select Install.

    Install JustMock NuGet Package

Command Line

  • On the command line you can use the following commands:

    dotnet nuget add source "https://nuget.telerik.com/v3/index.json" --name "Telerik.com" --username <TELERIK_USER> --password <TELERIK_PASS>
    dotnet add package JustMock.Commercial --version 2024.4.1203.350
    

    Telerik NuGet feed can be used with NuGet API keys, check this article to learn more.

Installing JustMock Lite

Visual Studio

  • JustMock Lite NuGet package is available on nuget.org. You can follow similar steps from the second part of the procedure above to add the JustMock Lite package to your test project in Visual Studio. Simply select the nuget.org source and browse for the JustMock Lite package:

    Install JustMock Lite NuGet Package

Command Line

  • On the command line run the following command:

    dotnet add package JustMock --version 2024.4.1203.350
    

Resources and Documentation

Next Steps

In this article