Can't change the Target Framework - visual-studio-2013

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.

Related

I upgraded my project from visual studio 2010 to visual studio 2015 but i is there any need to upgrade the msbuild

I am upgrading my project from visual studio 2010 to visual studio 2015
please tell me is there any need to upgraded the ms-build project.
Follow these steps to upgrade project created in earlier versions of VS this may help you:
In VS, on the File menu, click Open and then click Project/Solution,
Web Site, or File, depending on the kind of project you are
upgrading.
In the Open Project dialog box, select a project file, and then click
Open. If VS detects that the project or file was created in an earlier version of Visual Studio, the Visual Studio Conversion Wizard opens.
Complete the Visual Studio Conversion Wizard.
Refrence
is there any need to upgraded the ms-build project?
The answer is No. That because since start with Visual Studio 2013, Visual Studio team made a number of exciting changes to MSBuild for Visual Studio 2013. Now the 2013 version of MSBuild will ship as a part of Visual Studio instead of the .NET Framework. See this blog MSBuild is now part of Visual Studio! for more detail info.
You can find the MSBuild.exe from the directory: C:\Program Files (x86)\MSBuild\14.0\Bin
Since it ships as a part of Visual Studio 2013, just as Michael said, MSBuild upgrade should happen with the VS installation. So you do not need to upgrade the MSBuild separately.
Hope this helps.

How to Migrate Old Visual Studio Project to Visual Studio 2017?

Goal:
I try to open a visual studio project (c#) with CLR code for SQL Server from the Pluralsight course.
Issue:
I get no error messages just warnings below after One-way upgrade on Visual Studio 2017.
Your project is targeting .NET Framework 2.0 or 3.0. If your project
uses assemblies requiring a newer .NET Framework, your project will
fail to build. You can change the .NET Framework version by clicking
Properties on the project menu and then selecting a new version in the
'.NET Framework' dropdown box. (In Visual Basic, this is located on
the Compile tab by clicking the 'Advanced Compiler Options...'
button.)
When I open a solution with single project inside I get message below
The Project Needs to be migrated
or
The Project Needs to be loaded
Tried:
I tried editing csproj files with newer/older version numbers.
I tried different PCs with Visual Studio 2017 and Visual Studio 2015
Idea: Install Visual Studio 2010 as course was released in 2010 BUT I really do not want that.
When I got this issue, I tried reloading the project and when I did, it told me that I did not have an SDK installed and then it offered to install the SDK. Once I had the SDK installed, the project loaded and I was able to work with the project.

Visual Studio 2010 is unable to open project

I used Visual Studio 2010 to develop a web application. I formatted my machine and installed Visual Studio 2010 Professional. When I try to open old projects, I get an error saying:
The selected file is a solution file, but was created by a newer version of this application and cannot be opened.
I do not remember the version of visual studio 2010 I used the first time.
Can anyone tell me which version came after the professional edition?
Make sure VS2010 is updated to the latest service pack, otherwise check to see if the project was actually made in VS2012/13 in which case you will need to create a new VS2010 solution and rebuild it from your existing projects.
Open the .sln file in a text editor. In the beginning there is a marker which tells the VS version it is meant for. For VS 2010 it should look like that:
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
You should be able to change these values without any problems. As far as I know the file format did not change.
EDIT
Considering the comment of Dumisani: of course you need to target .net 4.0 and make sure no features of .net 4.5 are used!
Chances are you had a service pack installed that you are missing with a clean installation.

Migrate Visual Studio 2008 project to Visual Studio 2010

Hi i want to move Visual Studio 2008 C#.NET project to Visual Studio 2010. My existing VS2008 project Solution have multiple projects.My vs2010 is a WPF project , i moved some core project VS2008 to VS2010 WPF project. Successfully convert and added into VS2010 project but i am not able to reference converted project.
You should be able to just open the project in Visual studio 2010. It will prompt you before it upgrades. I recommend making a backup (there is a checkbox in the upgrade wizard). Just follow the instructions in the wizard. It is fairly straightforward.
The upgrade only changes the solution/project file. You can still have the app be a .net 2.0 or 3.5 application by choosing the target framework in the project properties. When you upgrade to 4.0, however, is when you will need to do lots of regression testing. We upgraded an MVC 1.0 app to .net 4.0 and had problems with the renderpartialtostring approach. We had to rewrite portions of the app just to upgrade into 4.0.
Also, don't forget that if you upgrade a project, certain behavior of the newer version will be suppressed by means of property sheets. You can get back the proper (new) behavior by removing the InheritedPropertySheets element of each Configuration in the .vcproj files.

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.

Resources