我目前正试图建立这样的项目结构:
当我在本地编译它时,它可以正常工作,但是在上我得到了错误
Error CS0246: The type or namespace name 'GalaSoft' could not be found
(are you missing a using directive or an assembly reference?)每次我引用任何Nuget包。
项目可以找到这里
构建日志是这里
有谁知道怎么解决这个问题吗?
发布于 2018-05-04 02:38:36
您需要将MvvmLightLibs NuGet包安装到DSACharacterSheet.Desktop项目中。
在App.xaml.cs文件中,您指定使用下面的命名空间:
using GalaSoft.MvvmLight.Ioc;
using GalaSoft.MvvmLight.Messaging;
using GalaSoft.MvvmLight.Views;但根据已安装的软件包无法找到它们。安装MvvmLightLibs包后,命名空间将是有效的,您可以成功地构建项目。
https://stackoverflow.com/questions/50148801
复制相似问题