In the era of the .net kernel, a new reason for this is to download a project for an unsupported version of the .net kernel. For example, if you downloaded a project from GitHub that was configured to use:
<PropertyGroup> <TargetFramework>netcoreapp2.2</TargetFramework> <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel> </PropertyGroup>
But you only have 2.1 installed or you are using Visual Studio 2017, then the compiler will not be able to find the SDK code and thus provide intellisense.
The solution in this case may be to right-click on your project and select Edit MyProject.csproj from the context menu and change the target environment if necessary:
<PropertyGroup> <TargetFramework>netcoreapp2.1</TargetFramework> <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel> </PropertyGroup>
This assumes that any project you uploaded can indeed be launched within the framework of the previous target platform.
rism Jun 15 '19 at 1:04 on 2019-06-15 01:04
source share