im getting the following error:
Error CS0246 The type or namespace name 'ApiControllerAttribute' could not be found (are you missing a using directive or an assembly reference?)
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
well, i did upgrade to 2.1 but it didnt change in my project and doesnt give the option to select it either, even after rebooting.
im going to run the visual studio update. I hope that fixes it. version 15.7.3
ok after I did the update, i couldnt fix my existing project. but once i started over it seemed to work , i hope.
Yes that fixed it.
@dstruve Glad you figured it out. Visual Studio 2017 15.7 is the minimum version required to support ASP.NET Core 2.1. As you probably know, the [ApiController] attribute is available as of ASP.NET Core 2.1.
Exist two solutions:
1) Change version of tutorial. In the left top menu of the current website change ASP.NET Core 2.1 -> ASP.NET Core 2.0.
2) Upgrade asp.net core in your project to ASP.NET Core 2.1
Most helpful comment
@dstruve Glad you figured it out. Visual Studio 2017 15.7 is the minimum version required to support ASP.NET Core 2.1. As you probably know, the
[ApiController]attribute is available as of ASP.NET Core 2.1.