好奇于mscorlib参考 [英] Curious to mscorlib reference
问题描述
我很好奇不同项目模板中的mscorlib
参考.
I am curious as to the mscorlib
reference in different project templates.
创建WPF项目时,在参考文件夹中找不到mscorlib
文件.我认为默认情况下会引用它.
When I create a WPF project, I cannot find the mscorlib
file in the reference folder. I think it is referenced by default.
创建Silverlight项目时,可以在文件夹中找到它.它链接到Silverlight框架.然后,我尝试将其删除,当然无法对其进行编译.然后,我尝试再次将该程序集添加到引用中;它不能添加,也不能再编译.有点奇怪.
When I create a Silverlight project, I can find it in the folder. It links to the Silverlight framework. Then I tried to delete it and of course it cannot be compiled. Then I tried to re-add this assembly to the reference again; it cannot be added and cannot be compiled anymore. It's weird.
创建MonoDroid项目时,仍然可以找到mscorlib
参考.但是在删除此引用之后,仍可以编译该项目.但我不确定它是否运行正常.
When I create a MonoDroid project, I can still find the mscorlib
reference. But after I deleted this reference, the project still can be compiled; but I'm not sure if it runs fine.
有人知道导致这种现象的原因吗?
Does anyone knows what causes this behavior?
谢谢, 霍华德
推荐答案
这是一个已知问题,将无法针对VS2010进行修复.解决方法是编辑项目文件并手动重新添加引用.
This is a known issue that will not be able to fix for VS2010. The workaround is to edit the project file and manually re-add the reference.
这篇关于好奇于mscorlib参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!