I\'m trying to compile code from F# to use in Silverlight. I compile with:
--noframework --cliroot \"C:\\program Files\\Microsoft Silverlight\\2.0.31005.0\" --standalon
Visual Studio uses the IsSilverlightAssembly() function in the Microsoft.VisualStudio.Silverlight.SLUtil type to check if a reference can be set.
David Betz has a nice blog post describing the details here.