.NET Development Environment
This section explains how to set up a .NET development environment to employ this client.
Supported .NET Versions
The supported .NET versions are as follows:
Product | Versions |
---|---|
.NET | 5.0, 6.0, 7.0, 8.0 |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Note
For server-side deployments, .NET 4.8 and .NET 6.0 are the supported versions.
Important
Ensure that you are using the JSON Serialization format for .NET 8.0, as BinaryFormatter Serialization methods are obsolete and prohibited in .NET 8.0. However, if you still want to use Binary Serialization, you can suppress the BinaryFormatter, as discussed here.
Install NuGet Packages for .NET Development Environment
NCache provides NuGet packages which contain client libraries to set up .NET development environment. To get started, you need to install the NCache SDK NuGet package.
Open Visual Studio and go to Tools -> NuGet Package Manager -> Package Manager Console.
On the console, execute the required command to install the NCache SDK NuGet package according to your requirements.
Note
Replace x.x.x with the version of NCache you are using.
Install-Package Alachisoft.NCache.SDK –Version x.x.x
Install-Package Alachisoft.NCache.Professional.SDK –Version x.x.x
Install-Package Alachisoft.NCache.OpenSource.SDK –Version x.x.x
You can also install NuGet Packages for the following .NET Integrations:
ASP.NET Core Sessions
Install-Package AspNetCore.Session.NCache –Version x.x.x
Install-Package AspNetCore.Session.NCache.Professional –Version x.x.x
Install-Package AspNetCore.Session.NCache.OpenSource –Version x.x.x
ASP.NET Core SignalR
Install-Package AspNetCore.SignalR.NCache –Version x.x.x
Install-Package AspNetCore.SignalR.NCache.Professional –Version x.x.x
Install-Package AspNetCore.SignalR.NCache.OpenSource –Version x.x.x
ASP.NET Core Response Caching
Install-Package NCache.Microsoft.Extensions.Caching –Version x.x.x
Install-Package NCache.Microsoft.Extensions.Caching.Professional –Version x.x.x
Install-Package NCache.Microsoft.Extensions.Caching.OpenSource –Version x.x.x
ASP.NET Core Data Protection Provider
Install-Package AspNetCore.DataProtection.NCache –Version x.x.x
ASP.NET Sessions
Install-Package AspNet.SessionState.NCache –Version x.x.x
Install-Package AspNet.SessionState.NCache.Professional –Version x.x.x
Install-Package AspNet.SessionState.NCache.OpenSource –Version x.x.x
ASP.NET SignalR
Install-Package AspNet.SignalR.NCache –Version x.x.x
Install-Package AspNet.SignalR.NCache.Professional –Version x.x.x
Install-Package AspNet.SignalR.NCache.OpenSource –Version x.x.x
ASP.NET View State Caching
Install-Package AspNet.ViewState.NCache –Version x.x.x
Install-Package AspNet.ViewState.NCache.Professional –Version x.x.x
ASP.NET Output Cache Provider
Install-Package AspNet.OutputCache.NCache –Version x.x.x
Install-Package AspNet.OutputCache.NCache.Professional –Version x.x.x
Entity Framework Core
Install-Package EntityFrameworkCore.NCache –Version x.x.x
Install-Package EntityFrameworkCore.NCache.Professional –Version x.x.x
IdentityServer4
Install-Package AspNetCore.IdentityServer4.Store.NCache –Version x.x.x
Specify Namespaces
Once you have configured the .NET development environment for your .NET application, you can now begin creating applications utilizing NCache's features. However, you need to specify the given namespace to get started: Alachisoft.NCache.Client
Note
The NuGet packages provided by NCache include client.ncconf and config.ncconf. These files help configure your NCache. See Client Config and Cache Config for details.