1
今天,我曾在我的项目,突然以下错误RIS:CS0426 - 类型名称{}不会在类型{}存在
CS0426 The type name 'CustomerView' does not exist in the type 'PetrolStation'
我不知道这是怎么回事:
我认为上面显示的图像是非常自我解释的。您可能会注意到同样的错误也发生在一个代码块进一步下跌,出现错误:
CS0426 The type name 'Views' does not exist in the type 'PetrolStation'
这里再次相同的错误:
这就提出了以下错误:
CS0426 The type name 'App' does not exist in the type 'PetrolStation'
有人知道这里发生了什么吗?
感谢
您是否在您的名字空间PetrolStation中添加了名为'PetrolStation'的课程? –
“我在我的项目中工作”和“无处不在”是矛盾的说法。 – Clemens
您是否创建了一个与名称空间名称相同的新类?右键点击'PetrolStation'并点击'转到定义' – Charleh