开发者

Visual Studio namespace errors after deleting userControls

Really Visual Studio can be so annoying sometimes...

I did nothing else than deleting 3 UserControls in a folder. Since that time I get a error message I do not get rid of. Whatever I do I can not build successfully my开发者_如何转开发 project.

I did not touch the SchoolAdministrationUC.xaml file , but I deleted 3 other UserControls also located in the path: TBM\View\SchoolclassAdministration\

Error message from VS:

Error 1 The type or namespacename "SchoolclassAdministration" is in namespace "TBM.View" not available. (missing assembly reference?) E:\TBM\obj\x86\Debug\View\SchoolclassAdministration\SchoolAdministrationUC.g.cs 33 16 TBM

How do I get rid of error ?


Well, the fact that it shows the obj folder as where the error is, have you tried a clean build? Or a complete rebuild?

Sounds like there is an object out there looking for a non-existent namespace.

Build -> Rebuild Solution


This error comes up when you unwittingly create a new Windows application Project to add the existing code for a class library project in the same project folder. If the original class library project is not compatible with VS or you have any other issue then creating a new class class library is an option.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜