Install NuGet in Visual Studio
NCache provides NuGet packages which contain client libraries. Note that there is no licensing required for clients in case of Server activated licensing model.
Apart from client libraries, the NuGet package copies client.ncconf and config.ncconf to the application's local directory.
Important
- If NCache is installed, NCache tries to read cache information from local configuration files first. If the required information is not found from local configs, it reads that information from configs inside NCache installation directory.
- If NCache is not installed on the machine where the application is running, please make sure that all required information is given in these local configs. To create a client cache in this case, please follow the steps as provided in Admin Guide.
Client.ncconf contains the information about the cache servers of each cache that the application needs to access.
Config.ncconf is used for local inproc cache and inproc client caches. For client cache, config.ncconf must also contain the name of the clustered cache that this client cache is a part of.
Installing NuGet Packages
To install NuGet packages, open Visual Studio and go to Tools -> NuGet Package Manager -> Package Manager Console.
On the console, execute the following commands to install the NuGet packages for Enterprise edition.
You can install NuGet packages for the following:
Enterprise SDK (all client libraries)
Install-Package Alachisoft.NCache.SDK
Distributed Lucene
Install-Package Lucene.Net.NCache
IDistributedCache
Install-Package NCache.Microsoft.Extensions.Caching
ASP.NET Sessions
Install-Package AspNet.SessionState.NCache
ASP.NET Core Sessions
Install-Package AspNetCore.Session.NCache
Entity Framework
Entity Framework 6
Install-Package EntityFramework6.NCache
Entity Framework Core
Install-Package EntityFrameworkCore.NCache
LINQ
Install-Package Linq.NCache
NHibernate
Install-Package NHibernate.NCache
ASP.NET SignalR
Install-Package AspNet.SignalR.NCache
ASP.NET Core SignalR
Install-Package AspNetCore.SignalR.NCache
See Also
Windows Installation
Network Installation with PowerShell
Evaluation Period Management
License Management