У меня есть решение с примерно 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 <a href="http://go.microsoft.com/fwlink/?LinkId=179545" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=179545</a>. 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 <a href="http://go.microsoft.com/fwlink/?LinkId=179545" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=179545</a>. 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. Я получил весь исходный код в zip-файле на USB-ручке и извлек его куда-то на диске c, поэтому удаленного доступа к коду нет.
Если бы у кого-то была такая же или похожая проблема ранее, я был бы очень признателен за любые указания здесь, как решить эту проблему.
EDIT
Последнее сообщение об ошибке выдается в этой строке в файле XAML:
<Views:RoutingManagerView DataContext="{Binding Dependency}"/>
И в верхней части XAML-файла это импорт для сборки:
xmlns:Views="clr-namespace:RoutingManager.Views;assembly=RoutingManager"