我在.Net框架项目中得到以下错误: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) 这是意想不到的,因为我没有在我的解决方案中的任何地方编写'AspNetCore‘,而且我也没有试图使用核心依赖。 (为了简单起见)我的解决方案中有两个项目:一个标准的ASP.NET项目和一个类库。 使用新的项目模板创建类库: <Project Sdk="M