Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

enter image description here

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.

like image 607
BI Dude Avatar asked Oct 30 '22 08:10

BI Dude


1 Answers

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.

like image 78
David Parvin Avatar answered Nov 09 '22 09:11

David Parvin