我有https://github.com/Mech0z/Foosball9000/tree/Auth我已经从我的启动项目 FoosballApi2 () 中引用了模型项目。
但是当我尝试构建时,我得到了
Severity Code Description Project File Line Error CS0246 The type or namespace name 'Models' could not be found (are you missing a using directive or an assembly reference?) FoosballApi2.DNX Core 5.0 C:\Git\Foosball9000\FoosballApi2\Controllers\LeaderboardController.cs
Severity Code Description Project File Line Error CS0246 The type or namespace name 'LeaderboardViewEntry' could not be found (are you missing a using directive or an assembly reference?) FoosballApi2.DNX Core 5.0 C:\Git\Foosball9000\FoosballApi2\Controllers\LeaderboardController.cs
最佳答案
我在尝试添加对类库项目的引用时看到了这个问题。将其添加为类库(包)项目。
关于c# - "Namespace could not be found"带有 ASP 5 和本地项目引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33787042/