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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:27:44+00:00 2026-06-13T17:27:44+00:00

I have (quite a bit of) static files that I need to deploy with

  • 0

I have (quite a bit of) static files that I need to deploy with my application that is built on top of a legacy .NET library. These include several XML and config files, and a read-only database in the 10’s of Megabytes.

Most forums I have seen indicate that the best way to accomplish this is to reference the needed files in a project, and set them to Content and “Copy to Output Directory”.

I have two issues/questions dealing with this:

  1. Adding these files, and setting them to “Content” seems to not only copy the files over, but embed them into the .dll as well. In other words, I have 40 MB worth of files, and a 40MB dll (this project’s only goal is to import these files, there is no substantial code).
    How can I prevent this extremely large dll from being made?

  2. Is there an alternative way to get files into the App bundle? I would love to use a custom build command, and although I can copy files into the target directory ${AppDirectory}, but this does not result in these files ending up in the app bundle. Is this approach possible?

Any help is appreciated in advance.

  • 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-13T17:27:46+00:00Added an answer on June 13, 2026 at 5:27 pm

    You need to include your files from the main .exe project. You do this by using MonoDevelop’s Build Action to Content on each file. They should be copied to the .app without being included inside an .dll (or the .exe).

    An alternative (for development) is to use iTunes sharing to copy once your files to your device. This allows you much faster deployment times while developing.

    Of course you can’t submit such build to the app store (unless the files are not required to make the application work, unlikely). What I do (for my nearly 80MB read-only database) is to use this hack (loading from /Documents) inside #if DEBUG. The release build load the files from the normal location.

    I have not automated the process (still debugging the app 😉 but it should be possible to script this so modifying the project options (for each file) is not required when switching from Debug and Release builds.

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

Sidebar

Related Questions

I have a pre tag within my page that contains quite a bit of
Background: I have a website that has been built with ASP.NET 2.0 and is
I have a dll with quite a bit of System.Drawing.Image resources that I have
I have a command-line utility that gets quite a bit of downloads from my
We have quite a bit of reusable code at work (a good thing). Whenever
When this callback is made in my app, I have quite a bit work
I'm making an engine/CMS for story-based web browser games. I have quite a bit
Have done quite a bit of searching for a guide (of any substance) for
My one activity seems to have grown quite a bit and I feel like
I have been searching for quite a bit now but I have never been

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.