简体   繁体   中英

Old C# projects not running in Microsoft visual studio 2017

I last downloaded and used Microsoft visual studio 2017 for a C# class back in the spring. I have since opened and loaded an old project today and I get this when running it:

“the current .NET SDK does not support targeting .NET Core 2.0. Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.0."

Any ideas as to why this is happening? When I open and run my c++ projects from the summer everything runs fine.

Thank you!

Ok, looks like you will have to go to this Microsoft page and choose and install .NET Core SDK you need:

.NET Core 2.0 downloads

Also it's good thing if you install updates in Visual Studio 2017 - check for the notifications flag in upper right corner of VS 2017.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM