Question

What's the deal with Visual Studio?

I tried importing the Caching App Block and got this message:

The assembly or one of its dependencies you're are trying to import requires a later version of .NET Framework.

I went to the properties of my application in Visual Studio, but I can't find the dropdown to switch....what's the deal?

Was it helpful?

Solution

Found it....went to "Advanced Compile Options" on Compile Tab.....weird!

OTHER TIPS

I think they make it different for C# project and VB project.

C# project

Solution Explorer --> Project --> Properties and on the Application tab you'll see Target Framework.

VB project

Project Properties --> Compile --> Advanced Compile Options

It should be on the Application tab in the project's properties. A great article on how Visual Studio 2008 handles framework targeting is VS 2008 Multi-Targeting Support.

In Visual Studio 2008, the Targeted Framework option was greyed out for me. I had to follow the instructions in article How to: Modify the Target Framework and Platform Toolset to change the Targeted Framework so that two related projects could work together.

Basically you unload the project with the wrong framework, open the project file in Visual Studio as a text file, find the line in the XML that specifies the Targeted Framework and change that to the desired framework. Save the file and reload the project.

Go to the properties of a project (Solution Explorer --> Project --> Properties or Menu Bar --> Project --> Properties) and on the Application tab you'll see Target Framework.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top