简体   繁体   English

构建后的 Visual Studio 出现错误 CS0246:找不到类型或命名空间名称?

[英]Visual studio after building give error CS0246: The type or namespace name could not be found?

I'm Using Visual Studio 2017 To Work With Asp.Net Core Project that work on my pc but when copy it on my laptop to start working , after building it give me the error in below image , it work correctly on another device and i don't missing any directive .我正在使用 Visual Studio 2017 来处理在我的电脑上运行的 Asp.Net Core 项目,但是当将它复制到我的笔记本电脑上开始工作时,构建它后给我下图中的错误,它在另一台设备上正常工作,我不要错过任何指令。

enter image description here在此处输入图片说明

您需要将以下命名空间添加到项目中: using Microsoft.AspNetCore.Http;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2017 构建到 hololens 错误 CS0246“找不到类型或命名空间名称 'UnityPlayer'” - Visual studio 2017 building to hololens error CS0246 "The type or namespace name 'UnityPlayer' Could not be found" 错误 CS0246:找不到类型或命名空间名称“IApplicationBuilderExtensions” - error CS0246: The type or namespace name 'IApplicationBuilderExtensions' could not be found 错误 CS0246:找不到类型或命名空间名称“PlayerMotor” - error CS0246: The type or namespace name 'PlayerMotor' could not be found 错误CS0246:找不到类型或名称空间名称“ HtmlAgilityPack” - Error CS0246: The type or namespace name `HtmlAgilityPack' could not be found 错误 CS0246:找不到类型或命名空间名称“UnityEngine” - error CS0246: The type or namespace name 'UnityEngine' could not be found 错误 CS0246:找不到类型或命名空间名称“KustoConnectionStringBuilder” - error CS0246: The type or namespace name 'KustoConnectionStringBuilder' could not be found 错误CS0246:找不到类型或命名空间名称“AssemblyFileVersion” - Error CS0246: The type or namespace name 'AssemblyFileVersion' could not be found 错误 CS0246:找不到类型或命名空间名称“Newtonsoft” - Error CS0246: The type or namespace name 'Newtonsoft' could not be found 错误 CS0246:找不到类型或命名空间名称“CsvHelper” - error CS0246: The type or namespace name 'CsvHelper' could not be found 错误CS0246:找不到类型或名称空间名称'WebDriverWait'? - Error CS0246: The type or namespace name 'WebDriverWait' could not be found?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM