3

我的问题似乎与这个问题完全相同: 加载项目时出现“无法加载元数据”错误 但由于没有回答,我会问我自己的问题。

Microsft Visual C# 2010 Express用来打开一个项目。起初没有错误,但是当我打开一个时,xaml file我收到以下错误:

Error   4   The type 'local:IndexConverter' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.    MainWindow.xaml 19  26  AppInventoryMvvm
Error   5   The type 'local:EditResourceMultiParamConverter' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.   MainWindow.xaml 39  26  AppInventoryMvvm
Error   6   The type 'local:AddResourceMultiParamConverter' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.    MainWindow.xaml 54  26  AppInventoryMvvm
Error   7   The type 'local:IndexConverter' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.    MainWindow.xaml 96  30  AppInventoryMvvm
Error   8   The type 'local:IndexConverter' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.    MainWindow.xaml 112 30  AppInventoryMvvm

如您所见,所有错误看起来都相同,并且抱怨的代码如下所示:

<local:IndexConverter x:Key="IndexConverter" />

现在我和其他同事一起使用完全相同版本的 IDE 和 SP 等等,(我也打开与他们完全相同的项目)对我来说为什么我可以查看设计完全是个谜!有任何想法吗?

要查看确切的错误和代码,请参阅下面的屏幕转储: 在此处输入图像描述

4

1 回答 1

1

我将继续回答我自己的问题,它可能会在未来对其他人有所帮助。

经过长时间的搜索,我发现:

Visual Studio 不支持从不可靠的位置加载文件。

我已将项目复制到网络存储磁盘,但它无法正常工作。 一旦我将项目复制到本地磁盘,它就开始工作了。

于 2013-10-16T06:43:17.257 回答