Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1838316
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:27:43+00:00 2026-05-17T06:27:43+00:00

How can I find out if a DLL that was created for a desktop

  • 0

How can I find out if a DLL that was created for a desktop application (in .Net) will work in a Silverlight application?
Bonus question: As SilverLight for Windows Phone 7 is a subset of Silverlight, how do I determine if the dll will work in a app created for a Windows Phone 7?

note: As WP7 does not support P/Invoke – it would mean that any .Net dll that uses P/Invoke should not work for a WP7 silverlight app. I would like to know if there is any easy way to determine this (without having to run the app itself).

The reason for this is that I need some image manipulation algorithm implementation and would like to figure out if they will work on the Windows Phone 7 platform before I buy them.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:27:44+00:00Added an answer on May 17, 2026 at 6:27 am

    In brief, it won’t. The two CLR runtimes are completely different, although they have similar interfaces.

    There are three caveats to this:

    (1) If you have the source code, and that code doesn’t depend on anything Silverlight doesn’t support, you can try cross-compiling it for Silverlight, by referencing the source files in a Silverlight project. Sometimes you can get it to work with minor source tweaks, or judicious use of #if defines. Sometimes you can’t.

    (2) In Silverlight 4/.NET 4, you can sometimes reuse assemblies compiled for Silverlight in .NET. The CLR team has a blog post explaining how it works. This is a pretty limited solution, however, because (a) the assemblies first have to be compiled for Silverlight, and (b) these portable assemblies can only call a small set of other assemblies which are themselves portable, such as Mscorlib, System, System.Core, and so forth. (I should note that this won’t work for you, since you’re targeting WP7, which is based on Silverlight 3.)

    (3) You can occasionally muck about with the DLL internals and hack the compiled DLL into believing it’s a Silverlight DLL. There’s a blog post about how to do it here. But again, this is a pretty limited solution, because the assembly can’t call any methods or assemblies that aren’t included in Silverlight. This includes some pretty basic things, like some of the overrides for Buffer.BlockCopy(), that sort of thing. I’d be surprised if this technique worked with a complex commercial image-processing DLL, but stranger things have happened.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

simple question: How I can find out commands for a DLLImport in C#.Net and
Is there a way that I can find out how many matches of a
Is there a way that i can find out what base tables are being
I have a Windows Forms application (.NET 4) that runs fine on my development
I created a cross-platform DLL in C++ that compiles on both Windows and Mac
I can find out the error in my apps. When am trying to execute
Can somebody tell me how I can find out how many threads are in
Can anyone tell me how I can find out if an SPField object is
I know I can find out if a variable is null in Java using
Typically in Django I can find out what queries are being run against the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.