【发布时间】:2020-09-06 20:30:01
【问题描述】:
UnitTest1.cs(131,10): error CS0246: The type or namespace name 'TestMethodAttribute' could not be found (are you missing a using directive or an assembly reference?)
16:42:40 UnitTest1.cs(131,10):错误 CS0246:找不到类型或命名空间名称“TestMethod”(您是否缺少 using 指令或程序集引用?)
16:42:40 UnitTest1.cs(144,10):错误 CS0246:找不到类型或命名空间名称“TestMethodAttribute”(您是否缺少 using 指令或程序集引用?)
【问题讨论】:
-
您是否使用路径
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe来构建您的项目?如果没有,请试试这个。 -
我正在构建服务器中运行
-
你的项目在本地构建成功了吗?
标签: c# visual-studio build msbuild teamcity