Jamie Starke
Jamie Starke

Reputation: 9234

Where to find System.Runtime.Caching to reference in a Windows Forms application

I'm writing a fairly simple Windows Forms tool to help me perform some things on a database. I frequently need to go to the database to get IDs and I can't do away with getting the IDs.

I found some references to it such as this one, which all suggest I should be looking for System.Runtime.Caching, but when I go to Add Reference, There are no System.Runtime.Caching components.

Am I missing something here?

Upvotes: 2

Views: 4358

Answers (1)

mfanto
mfanto

Reputation: 14428

The project is configured for .NET 4.0 Client Profile, which is a reduced subset of assemblies/features. It's designed for "client apps", where you don't need ASP.NET and backend functionality. It's supposed to lead to faster installs and deployments.

You can change the target framework by right clicking on your project in Visual Studio, and under the Applications tab, change the target to the full .NET 4.0 Framework. See here for a screenshot of what to change.

Upvotes: 9

Related Questions