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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:38:50+00:00 2026-05-13T00:38:50+00:00

When you compile a C# project, the app settings from app.config are saved along

  • 0

When you compile a C# project, the app settings from app.config are saved along with the exe file. For example, if the program name is “solve_np.exe”, there will be a “solve_np.exe.config” next to it, making it look less neat than I want it to. How can you embed it into the .exe?

I tried to set Build Action to Embed Resource, but that did not do the trick.

  • 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-13T00:38:50+00:00Added an answer on May 13, 2026 at 12:38 am

    Aha. I guess you’re falling foul of Visual Studio automatically placing stuff in configuration that you DONT want configured by the end user.

    In this case use resources. Simply add a new file of type .resx. With this you’ll be able to add things like strings and images to the resource file. After you build this it should provide static access to the resources (it typically generates a code file from the resources for you so you don’t have to access ResourceManager yourself).

    E.G. If I made resources.resx with a string called MyConfigValue after a build I should be able to access this like:

    textBox.Text = Resources.MyConfigValue;
    

    If you want values that are kinda variable but shouldn’t be configurable then this is the right place to put them.

    HTH.

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

Sidebar

Related Questions

This is a follow on from here: Storing database settings outside app.config So I
When I compile our project use Delphi 2010 Trial, there has a fatal error
When trying to compile a project with TeamCity, I am getting an error from
I have a Web App Project (compiled DLL) along with 3 DLL projects. In
When I compile a project I get this error: C:\DATOSA~1\FAXENG~1>nmake /f Makefile.vc clean Microsoft
When you compile a project in Visual Studio (VS), as part of the compilaton
While trying to compile my project, that uses some third party headers, with mingw
I'm trying to compile a project on windows and it uses flex/bison. Compiling the
I am trying to compile my project on Snow Leopard using the same CMakeLists.txt
I'm trying to compile a project that uses both libjpeg and libpng. I know

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.