How to use non-Silverlight DLL's in Silverlight applications? - silverlight

How to use non-Silverlight DLL's in Silverlight applications? I cannot reference them in my Silverlight application, but I can in the Web projects which runs the Silverlight app. Is there a way for my Silverlight app to somehow use the DLL in the Web project?

Silverlight uses a subset of the CLR called the CoreCLR. You will need to recompile your CLR assemblies against the CoreCLR to use them in Silverlight.

Related

Can i use .dll library targeted .net framework v3.5 in application having targeted framework 4.0?

Hello currently I'm working on desktop application using WPF. I create application by targeting .net framework 4.0. but I have facing some problems related targeted frameworks.
First there is a library which i have to use in my application.A library supports targeted .net framework v3.5 but I also want to use the DataGrid control (only available above than v4.0 targeted .net framework) for table so now i'm confuse what i should do now? how can i achieve my goal? i want to use both library + Datagrid control in my application which is targeting .net framework v4.0.
Thanks in advance :)

.NET Native Compilation with Desktop Bridge to UWP

I have a wpf application which I want to host on windows app store. I am thinking of using the desktop bridge to convert WPF to UWP without code changes. However, is it possible to make use of .net native compilation while using the desktop bridge approach in visual studio 2017???
No, this is not possible today for your WPF code - even with the Desktop Bridge. You can only do it for regular UWP projects that are targeting the .NET Core for UWP runtime.

Visual Studio project type for DTOs that should be accessible in Silverlight

What VS project type should I choose so that the data-transfer-objects that I create in it can be accessible in both in my Silverlight project as well as my WCF service project.
(I want to be able to reuse the DTOs that I define in both projects instead of having VS generate a new set in my Silverlight project when I create a web-service reference to the WCF service).
IE, my question is can the project be a Windows class library, or should it be a Silverlight class library (so as to reference it in both my Silverlight project as well as the WCF project).
You've got three main options:
Create two class library projects (one targeting Silverlight, the other the .NET Framework), and share the files between them, as I discuss in this article: http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-3.aspx
Create your class library as a Silverlight class library. Silverlight applications can't reference class libraries that target the full .NET Framework, but applications targeting the full .NET Framework (such as you WCF Service) can (generally) reference class libraries that target the Silverlight runtime.
Try out the Portable Library Tools (currently in beta): http://blogs.msdn.com/b/sburke/archive/2011/01/23/3-screen-coding-is-here-portable-library-tools-allow-you-to-target-multiple-net-platforms-with-one-binary.aspx
Have you thought of using RIA Services (or WCF Data Services) instead of a plain WCF service? RIA Services / WCF Data Services handles this problem for you, and adds other great functionality into the mix.
Hope this helps...
Chris Anderson

Can Silverlight Out-of-Browser app call .NET DLLs?

This might be a stupid question (I'm new to Silverlight!), but if I develop a .NET DLL with methods, can my Silverlight Out-of-browser app call and use this DLL and its methods if it is provided in the IsolatedStorage area of my Silverlight OOB install? Or does all code have to be contained in the Silverlight package?
Thanks!
How to: Use Automation in Trusted Applications

Does ninject-contrib support Silverlight?

I'm building a Silverlight application with Prism, and we'd like to use NInject. I've downloaded ninject-contrib to use their NInject bootstrapper, but it doesn't appear to build a Silverlight assembly. I compiled it myself to Silverlight, but it crashes Visual Studio.
Has anyone already ported ninject-contrib to Silverlight successfully?
You shouldn't have to use ninject-contrib. There is a download available for Silverlight. You can find it here. Let me know if this isn't what you are looking for, but if you would just like to use Ninject for dependency injection in a Silverlight app, this should be all you need.

Resources