Xamarin Studio
Mac
我刚检查了PCL
项目选项下的不引用mscorlib.dll (我正在使用{ {1}} mono
)的实施。
令我惊讶的是,我已经在不同的平台上运行了lib,到目前为止一切都很顺利。但是mscorlib
仍然认为默认IDE
仍然存在。
所以这样的事情正在发生:
mscorlib
有一些方法可以使//The default mscorlib has List
var myList = new List<int>();
//This method is implemented only in my custom mscorlib.
//It compiles but the IDE does not recognize the method
//Because it thinks myList uses the List implementation from the default mscorlib
myList.AsReadOnly();
忽略默认IDE
?
此外,使用mscorlib
的单声道实现有哪些风险?我已经创建了文件并使用了很多实用程序函数,所以这个实现是真正的多平台吗?