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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:40:21+00:00 2026-06-12T12:40:21+00:00

I have a WinRT application and a .NET application which want to share images.

  • 0

I have a WinRT application and a .NET application which want to share images. I have been using portable class library and want to share as much code as possible. I also want to have only one copy of all images and use the ‘Add Link’ feature to add images.

My WinRT app uses a build action of ‘Content’ and I refer to my images using a relative path like so:
/Assets/Flags/Australia.png

I have added the images to my .NET application using add link and used the same ‘Content’ build action but I can’t get this working. It only seems to work when I use a build action of ‘Resource’ and use a full path like so:
/MyProject;component/Assets/Flags/Australia.png

I have a model in my portable class libary project which contains a property returning the path to the flag image. Both applications should share this property. How can I achieve this and what build action do I use.

  • 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-12T12:40:22+00:00Added an answer on June 12, 2026 at 12:40 pm

    It turns out sharing is not possible. I ended up using seperate properties for the path to my images in WinRT and WPF.

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

Sidebar

Related Questions

I have an application I'm writing for Windows 8/WinRT that uses the StreamSocket API
I have a StackPanel in my WinRT C# Metro app that I want to
have written this little class, which generates a UUID every time an object of
I have created a Windows Store class library. This contains some user controls and
One Strange Problem. I made an application in java using eclipse in which data
I've been using C# for quite a while, but somehow have not yet had
I have this code: #define _WIN32_WINNT 0x0500 #include <cstdlib> #include <iostream> #include <windows.h> using
I have a WinRT application for Windows 8 that contains several C++ static libraries
Imagine a scenario where you have a complex framework of WinRT code that you
I have a volume slider in my WinRT app which I would like to

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.