![](/img/trans.png)
[英]c# error The type or namespace name 'SampleMain' does not exist in the namespace
[英]How to fix "The type of namespace name "Fault" does not exist in the namespace" for gRPC and C#?
我已經定義了很多類型和方法(原始語言中的消息和服務)並被困在這個問題上。 有時,當我進行更改時,我會收到這個非常無用的錯誤消息。
The type of namespace name "Fault" does not exist in the namespace 'MyApp.MyDomain' (are you missing an assembly reference?)
我正在使用 Visual Studio 2017 並編譯為 C#。
我遇到了這個,但在我的情況下,我有一個導入聲明。 導入語句區分大小寫。
"project/myClass/v1/ mytest .proto" => "project/myClass/v1/ myTest .proto"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.