error CS0246: The type or namespace name ‘xxx‘ could not be found

error CS0246: The type or namespace name 'xxx' could not be found (are you missing a using directive or an assembly reference?)

问题描述:代码里面引用没有问题,但就是vs里面总是生成不成功

解决方法:原来是项目目标框架与引用的目标框架不一致导致,一个是4.5,一个是4.6,改成一致即可生成成功。

error CS0246: The type or namespace name ‘xxx‘ could not be found_第1张图片

你可能感兴趣的:(C#,c#)