How to Migrate Old Visual Studio Project to Visual Studio 2017? - visual-studio

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.

Related

MSVS 2015 with Xamarin Error on creating Blank App( Xamarin.Forms Portable)

I installed Visual Studio 2015 successfully but on stage of creating a new Project when I choose "Blank App (Xamarin.Forms Portable)" I've got this error:
I updated Nuget Package Manager and Xamarin.Forms
and checked folder Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable
(I have v4.0,v4.5,v4.6,v5.0).
But nothing changed. That's my first experience with MSVS. How can I fix this problem?
System Setup:
Windows 7 SP1
Visual Studio 14.0.25123.00 Update 2
.NET Framework Version 4.6.01055
Have you made sure your Forms project is targeting .NET 4.5 or higher?
Right-click your Forms project in Solution explorer and choose Properties (near the bottom of context menu), then go to the Library tab.

Windows Phone: this version of Visual Studio does not have the following project types installed or does not support them

I'm exporting a Visual Studio Project file from Unity 4.6 for Windows Phone platform. However, .sln file that created by Unity cannot be open from Visual Studio 2012.
I'm getting following error.
Unsupported This version of Visual Studio does not have the following
project types installed or does not support them. You can still open
these projects in the version of Visual Studio in which they were
originally created.
- xyz, "D:\data\may5\June22nd2ndBuild\xxx\xxx.csproj" No changes required These projects can be opened in this version of Visual Studio
without changing them. They will continue to open in Visual Studio
2010 SP1 and in this version of Visual Studio.
- xyz, "D:\data\may5\June22nd2ndBuild\xxx.sln
You need to install Windows Phone SDK
https://dev.windows.com/en-us/develop/download-phone-sdk
While not mandatory, it will also prove useful to have Visual Studio Tools for Unity installed
http://unityvs.com

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.

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