Øyv*_*hen 2 .net c# compilation
我有一个大约10个项目的解决方案,我自己没有写过任何这个,但我将在这里接管一个项目.作为主要项目的项目基于WPF.当我尝试运行此项目时,我收到以下编译器错误:
The tag 'RoutingManagerView' does not exist in XML namespace 'clr-namespace:RoutingManager.Views;assembly=RoutingManager'. Line 29 Position 14. C:\Source\WSA\WsaClient\Views\MainView.xaml 29 14 WsaClient
然后,如果我双击此错误消息,以便打开xaml,并且加载设计器,设计器不会加载,我还会收到3条错误消息:
Unable to load the metadata for assembly 'WsaClient'. This assembly may have been downloaded from the web. See http://go.microsoft.com/fwlink/?LinkId=179545. The following error was encountered during load: Could not load file or assembly 'WsaClient' or one of its dependencies. The system cannot find the file specified. C:\Source\WSA\WsaClient\Views\MainView.xaml 1 1 WsaClient
Unable to load the metadata for assembly 'RoutingManager'. This assembly may have been downloaded from the web. See http://go.microsoft.com/fwlink/?LinkId=179545. The following error was encountered during load: Could not load file or assembly 'RoutingManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. C:\Steria\Forsvaret\P6088\Source\WSA\WsaClient\Views\MainView.xaml 1 1 WsaClient
The type 'Views:RoutingManagerView' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. C:\Source\WSA\WsaClient\Views\MainView.xaml 29 14 WsaClient
我用谷歌搜索了它,许多人认为这是因为DLL被锁定,因为它来自互联网.但在我的情况下,我没有DLL.它抱怨两个项目是解决方案的一部分,WsaManager和RoutingManager.我在usb笔上的zip文件中获得了所有源代码,并且我已将其解压缩到我的驱动器上的某个位置,因此无法远程访问代码.
如果有人之前遇到过相同或类似的问题,我将非常感谢有关如何解决此问题的任何指示.
编辑
最后一条错误消息在XAML文件中的此行上给出:
<Views:RoutingManagerView DataContext="{Binding Dependency}"/>
Run Code Online (Sandbox Code Playgroud)
在XAML文件的顶部,这是程序集的导入:
xmlns:Views="clr-namespace:RoutingManager.Views;assembly=RoutingManager"
Run Code Online (Sandbox Code Playgroud)