日期:2014-05-18  浏览次数:20960 次

C# wpf文件错误
本来我把wpf文件直接创建在项目下,后来我在项目下创建了一个文件夹,把这些wpf文件放到了文件夹下。
我把*.xaml.cs文件的命名空间改过来了; *.xaml文件的x:Class="" 也改了 
但是obj文件夹下的*.g.cs 出错:
错误 56
未能找到类型或命名空间名称“*”(是否缺少 using 指令或程序集引用?) E:\NewPrect\Mainject\ProjeManagement\obj\Release\ProjectProgress\*.g.cs 12 7 ProjeManagement

我对比了一下 这个文件里多了一句:using *;

可是这个文件是自动生成的,我是哪里没有改过来吗?

------解决方案--------------------
clear
rebuild
------解决方案--------------------
xmlns 那里你看看 类似下面后两行



<Application x:Class="ContactManager.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Presenter="clr-namespace:ContactManager.Presenter"
xmlns:Model="clr-namespace:ContactManager.Model"〉