.net - 解决方案在 VS 2017 中成功,但在 dotnet.exe 中失败
问题描述
我有一个使用 VS 2017 正确构建的解决方案,但使用 dotnet.exe 失败并出现以下错误:
WorkerRole.cs(23,33): error CS0234: The type or namespace name 'Logging' does not exist in the namespace 'GMOK.CIL.Blog.Common' (are you missing an assembly reference?) [c:\UDLF\GMOK\CIL\BlogService\src\Service\Processor\Processor.WorkerRole\Processor.WorkerRole.csproj]
WorkerRole.cs(38,53): error CS0234: The type or namespace name 'TollBlock' does not exist in the namespace 'GMOK.CIL.Blog.Processor.Plugins.megaData' (are you missing an assembly reference?) [c:\UDLF\GMOK\CIL\BlogService\src\Service\Processor\Processor.WorkerRole\Processor.WorkerRole.csproj]
Done Building Project "c:\UDLF\GMOK\CIL\BlogService\src\Service\Processor\Processor.WorkerRole\Processor.WorkerRole.csproj" (default targets) -- FAILED.
该解决方案有几个项目,其中一些项目相互依赖。我怀疑问题是由于构建顺序不正确,但我没有看到指定构建顺序的选项,或者可能是其他问题。
有人遇到过类似的问题吗?
解决方案
推荐阅读
- javascript - 每天数组中的不同项目 - javascript
- javascript - 有没有办法在 documentElement 之外访问 DOM?
- sql - WITH AS (SELECT) 语句的 CREATE VIEW 语法
- c++ - 如何在 Ubuntu 16.04 中安装 MySql 连接器/C++
- javascript - 即使我的 html 和 css 运行完美,当我将文件放入 chrome 时,我的脚本文件也不会运行
- python - groupby.diff 中的神秘 ValueError
- javascript - 如何在循环中正确使用异步等待
- vue.js - 网址查询参数
- php - Lumen / Laravel:无法弄清楚对 json 响应进行单元测试的工作原理
- rabbitmq - Elm 中的 RabbitMQ 客户端