How to target .Net 3.5 in Visual Studio 2012 Express? - windows

Is there a way in Visual Studio 2012 Express to target .Net 3.5? By default .Net 4.0 is targeted, but i couldn't change it. Is there a way to change this setting?
Thanks!

I see the template export option under the File menu in Visual Studio 2012 Express. I have used it to create project templates for targeting .net 3.5 and .net 4.0.

Target framework is related to the project template not to the IDE and Since VS2012 doesn't have Export Template Wizard,I think you have to get a template project that targets .Net Framework 3.5 and create your projects with it.
Hope it helps

Related

How to target .Net Core from Visual Studio?

The answer here suggests to target .Net Core.
I've installed Visual Studio 2015 Community Edition and Mono Runtime. The list of target frameworks in visual studio looks this way (No .net core):
What should I do next?
Had the same problem.
My mistake was that I chose the template for
Windows -> Console Application instead of
Web -> Console Application
when I created the new project. From your screenshot it looks like you did the same.
Depends on what you need. In my case I found that in the latest update for VS 2015 there's the option of Class Library (Portable) more suitable.
A useful add-on to VS 2013 and 2015 is .NET Portability Analyzer to check your code:
https://visualstudiogallery.msdn.microsoft.com/1177943e-cfb7-4822-a8a6-e56c7905292b?SRC=VSIDE

Can't change the Target Framework

I have a project written in visual studio 2008. I want to upgrade to a newer .NET framework. But everytime I open the project and try to change the target Framework it changes back to .NET 2.0.
Let me know if you need more info.
I open the project in Visual Studio 2013.
Thanks.
The solution was to open the project in Visual Studio 2008. Change the target framework to the newest and after that open the project in Visual Studio 2013 and then change the Target Framework to the newest version.

Is it possible to downgrade from Visual Studio 2012 to Visual Studio 2010?

I have a wonderful solution in Visual Studio 2012 with a Web project using WebAPI and a supporting Web Service project for data using Entity Framework (EF) Code First. I was just told I need to see about using Visual Studio 2010.
Is there something I can do to work on this project in Visual Studio 2010?
As Henrick answers: you do not upgrade/downgrade VS installs, rather you install versions side by side.
You note two technologies that might be problematic:
EF Code First: this is supported from 4.1 (or was it 4.2?) which is supported against .NET 4.0 and VS2010. Providing your not using enum or geo/spatial data types (which require .NET 4.5) this should work, but you'll need to ensure you update to the EF5 NuGet package for .NET 4.
WebAPI: This is new in MVC4, which comes with VS2012, but is a separate install for .NET 4/VS2010.
Finally. While some project types with round trip between VS2012 and VS2010 SP1 (you need the service pack) it is not true for all project types. Details are on MSDN.
You can install Visual Studio 2010 separately and open the project and see. There is no danger in having version 2005, 2008, 2010 or 2012 of Visual Studio installed.

Can I open VS 2008 Project in VS 2010 Beta

I was hoping there would an option somewhere that would just let me open my VS 2008 projects and continue working in .Net 3.5 - while using some of the neat new VS UI enhancements.
Yes, Visual Studio 2010 allows you to target previous versions of the CLR/.NET framework at the project level.
When you open the Visual Studio 2008 project file in Visual Studio 2010 it will convert the project file for you. Once this is done, it will be smart enough to target the proper framework and runtime version for you (.NET 3.5 and CLR 2). If it doesn't, you can change this yourself on the property sheet for the project.

Is there a way to change .NET framework version of Visual Studio 2005 to 3.5?

Is there a way to change .NET framework version of Visual Studio 2005 to 3.5?
No. Visual Studio 2005 only supports .NET 2.0 out-of-the-box. It can be updated to support .NET 3.0.
It is possible to compile .NET 3.5 code with a Visual Studio 2008 Express Edition, or without Visual Studio 2008 using Mono and I think the Windows/.NET SDK. However these will obviously not be integrated into Visual Studio 2005.
Visual Studio 2005 only supports .NET 2.0. The format of the solution file (.sln) changed in Visual Studio 2008 to allow you to select the target .NET version.
VS2008/2010 have a visual way of setting the project setting "TargetFrameworkVersion" which makes it easier, however I have found that adding the same tag to a VS2005 project will change the target framework. You might try adding 1(one) of the following into the section of your VS C# project.
<TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

Resources