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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:37:00+00:00 2026-05-24T11:37:00+00:00

I need to get the filename for a file linked with my Visual Studio

  • 0

I need to get the filename for a file linked with my Visual Studio project as “Resource”, “Embedded Resource” or “Content” (doesn’t matter which). How can I get the absolute or relative path for it? The problem is that my application runs with current directory “C:\Program Files\Microsoft Silverlight” (because it’s OOB?!), so I can’t just set the file to “Copy if newer” and use a filename relative to the assembly execution directory.

  • 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-24T11:37:02+00:00Added an answer on May 24, 2026 at 11:37 am

    A resource embedded in your Silverlight application can’t have a relative file path per se.

    If you choose embedded resource or resource, the file will be embedded in the project dll as a resource.

    If you choose “content”, I think (but I am not entirely sure) that the file will be embedded in the XAP file of your Silverlight application.

    Either case, it’s in the application package (the XAP file) , and therefore isn’t really reachable from outside.

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

Sidebar

Related Questions

i need to get filename from file path string. For example, from this string
I need to get some external data to form an output file name in
I am trying to get names from a .txt file. I am using file('filename.txt')
I need to get the first 10mb of a file and compute md5 from
I need to extract just the filename (no file extension) from the following path....
I'm trying to simply get the filename of a file from an online directory.
using rails with Paperclip, I can use the following to get the filename during
I need to get the same kind of info that you can get on
I need to get the name of a file from a given file descriptor,
I need to get a random filename from a directory in AS3, and open

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.