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

  • Home
  • SEARCH
  • 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 8822659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:09:38+00:00 2026-06-14T06:09:38+00:00

I have a dll with core functionality which I wan’t to use at ASP.MVC

  • 0

I have a dll with core functionality which I wan’t to use at ASP.MVC application and Metro app. So I made Portable Library compatible with .NET 4.0 and .NET for Widows store app from my dll. As expected build was failed.
The main reasons was:

  1. Serializable attribute http://social.msdn.microsoft.com/Forums/en/winappswithcsharp/thread/b2ca4ac8-326d-48b0-bb45-965459a99808 – painful surprise
  2. System.Reflection.Emit namespace http://geekswithblogs.net/mbrit/archive/2012/06/05/say-goodbye-to-system.reflection.emit-any-dynamic-proxy-generation-in-winrt.aspx
  3. Usages of FileInfo class. Pretty much expected that all file system calls won’t be working

I know that all UI classes won’t be compiled, also.

So my question is
What namespaces and classes do I have to avoid if I what to share my library between .net 4.0 and WinRT?

UPDATE
Here is full list of changes in classes and namespaces http://msdn.microsoft.com/en-us/library/windows/apps/br230302%28v=vs.110%29.aspx#convert

  • 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-06-14T06:09:39+00:00Added an answer on June 14, 2026 at 6:09 am

    If you’re writing new code that you want to reuse in .NET framework and Windows Store apps, it’s best that you immediately start writing your code as a portable class library with these two target platforms selected. This way you’ll only have available the classes and methods that work on both platforms (Intellisense works as expected as well).

    You can find an overview of the available APIs for each of the supported platforms here.

    For the APIs that are not supported through portable class libraries because they are conceptually different but are still available in a way (file IO is a good example) you can use the abstraction/indirection pattern to implement them differently for each of the platforms. Here‘s a good explanation of this approach.

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

Sidebar

Related Questions

I have two completely independent web application that each use a shared core dll.
In an ASP.NET MVC3 project I have a structure like this: Core.csproj -> 3rdparty1.dll
I have a DLL which cause to an error when I run the application.
I have DLL and application that will call some function in this dll. For
I have a dll in C# which returns a class object. DLL code: Person.cs:
I have a DLL which outpus data to a stream. But it adds a
I have a .dll library which exports a function in the following format: _Java_folder1_folder2_folder3_JavaClassName_javamethodname@16
I have a central library (DLL) called Core that is used by many projects
Can you help me? I need to have subsonic.core.dll strongly named. How can I
I have a MVC 3.0 .Net 4.0 Razor application that is periodically giving me

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.