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 8435061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:49:34+00:00 2026-06-10T06:49:34+00:00

Imagine a scenario where you have a complex framework of WinRT code that you

  • 0

Imagine a scenario where you have a complex framework of WinRT code that you would like to access from both C++ Metro Apps and C# Desktop Apps.

Is there any way to include WinMD in a non-Metro application?

  • 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-10T06:49:35+00:00Added an answer on June 10, 2026 at 6:49 am

    UPDATE: This only works with Windows 8. Microsoft disabled this in Windows 8.1.

    Yes, there is. The block when attempting to add them via the reference manager appears to be implemented inside Visual Studio itself. Once added, Visual Studio will treat the referenced file as it would any other WinMD file.

    NOTE: THIS WORKAROUND IS NOT SUPPORTED BY MICROSOFT!

    To add your custom WinMD file to any Non-Metro application you must first ensure that you are targeting .NET 4.5. This will not work with any prior version of the .NET Framework.

    Once you are targeting .NET 4.5 unload the project file and open it for editing. Then, add the following code after the last <PropertyGroup> in the project file:

      <PropertyGroup>
        <TargetPlatformVersion>8.0</TargetPlatformVersion>
      </PropertyGroup>
    

    Next, find the <ItemGroup> that contains your references and add the following:

    <Reference Include="{Namespace}">
      <HintPath>{Path to WinMD file}</HintPath>
    </Reference>
    

    While I cannot guarantee that no problems will arise from doing this, and given that Microsoft has been VERY clear about the fact that regardless of which Framework Profile you are using the CLR is loading the same Assemblies, I strongly suspect that this will not cause any harm.

    A note on Class Libraries. If you include your WinMD into a non-Metro Class Library and then reference that library in a non-Metro application; you will be unable to access any of the custom WinRT types that your Class Library exposes without either referencing the WinMD file in your application or providing wrapper types.

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

Sidebar

Related Questions

Imagine the scenario you have a listing page that is a concatenation of multiple
Imagine the following scenario. I have a checkbox that the user can check to
Imagine this scenario: you have a WCF web service that gets hit up to
Well, imagine the scenario where i have 3 objects, hanging from the ceiling, each
I have seen example code that looks like this, which seems perfectly reasonable: [Authorize(Roles
Imagine case scenario, you have a list of recipes that have ingredients as a
Imagine following scenario: We have a lot of parallel development going on in several
Imagine this scenario: You have a desktop and a laptop. The desktop has a
Imagine this scenario: in our company there is an employee that play around graphic,css,html
I'm looking for example of how I would solve the scenario below: Imagine my

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.