Are standard .Net 2 dlls compatible with Silverlight 2.0?

If I avoid references to assemblies that do not exist in the silverlight 2.0 runtime, will the .NET DLLs that I create with VS2008 work with silverlight without recompiling or other changes?

+3
source share
2 answers

No, you still have to recompile the Silverlight version of the assembly versions. You can add these files to the Silverlight Class Library project β€œas a link” using the same file between both projects so you at least don't have to worry about exiting synchronization.

+3
source

, API Silverlight API. #if, ..

#if SILVERLIGHT
/* some code */
#else // WPF
/* some other code */
#endif
0

Source: https://habr.com/ru/post/1697784/


All Articles