Search code examples
.netsilverlightframeworksmscorlib

Curious to mscorlib reference


I am curious as to the mscorlib reference in different project templates.

When I create a WPF project, I cannot find the mscorlib file in the reference folder. I think it is referenced by default.

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.

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?

Thanks, Howard


Solution

  • 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.