I have looked everywhere for a solution to this but I am having no luck.

I have created an MVC app through the command line with the TargetFramework of netcoreapp2.0 and I can't add any .cs files to the project through the Add Class/Item in Visual Studio 2017.

I also don't get the option to create a new project with netcoreapp2.0

I have tried:

Uninstalling and reinstalling VS2017 Uninstalling and reinstalling NetCore SDK Installing 32bit NetCore SDK

I have the following installed from the VS2017 Installer

.NET Desktop Development ASP.Net and Web Development .NET Core Cross-Platform Development

EDIT: I reinstalled windows and I no longer get the error below, but I still don't see the cs file option within VS.

I get the following error when installing VS2017

EDIT 2: After repairing VS2017 I looked in programs and features and I 2 versions of dot net core installed. I uninstalled the older (64 bit) version, also removed the old version from PATH variables and this fixed it!

Thanks