首页 > 解决方案 > 解决方案在 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.

该解决方案有几个项目,其中一些项目相互依赖。我怀疑问题是由于构建顺序不正确,但我没有看到指定构建顺序的选项,或者可能是其他问题。

有人遇到过类似的问题吗?

标签: .netbuildvisual-studio-2017

解决方案


推荐阅读