473,408 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

config file automatically deleted!


I created a WinForms app (MyApp.exe), and created a config
file(MyApp.exe.config) in it's output directory. However, whenever the build
finished, the config file is deleted automatically!!! Besides, anyother
*.config files in the output directory (there are several projects that
share the same output directory) is also deleted!

Has anyone encounter the same problem?

Jul 19 '05 #1
2 2143
hi .. yes this was posted to another group.. heres the solution given.
i gues u must be using VS 2003.
quote
"Your config file should be included as a file *within* your project and
should be named "app.config". VS will rename it and store it in the correct
output directory at build time.
-- Alan" &quote


Jul 19 '05 #2
It's not case sensitive, "app.config" works too, I just tried it

"José Joye" <jo*******@KILLTHESPAMSbluewin.ch> wrote in message
news:un**************@TK2MSFTNGP10.phx.gbl...
I think it is case sensitive
--> App.config
José
"soni" <so**@bizpivot.com> wrote in message
news:OC**************@tk2msftngp13.phx.gbl...
hi .. yes this was posted to another group.. heres the solution given.
i gues u must be using VS 2003.
quote
"Your config file should be included as a file *within* your project and
should be named "app.config". VS will rename it and store it in the

correct
output directory at build time.
-- Alan" &quote



Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Richard | last post by:
I have a simple C# console app that needs to read the appname.exe.config file to get db connect strings etc. from the <appSettings>. When the app starts, it deletes the file! I can't figure it...
3
by: baylor | last post by:
I'm having a weird bug and wondering if anyone has ever seen this before A Hello World GUI app. Create an app.config. When you build, Studio copies app.config to bin\debug\ and renames it to the...
2
by: Lei Jiang | last post by:
I created a WinForms app (MyApp.exe), and created a config file(MyApp.exe.config) in it's output directory. However, whenever the build finished, the config file is deleted automatically!!!...
3
by: Richard Lewis Haggard | last post by:
I have a test application that is calling an assembly that reads some strings out of a config file. Normally, this assembly supports a web application and the information can be read just fine....
1
by: raulavi | last post by:
vb vs2003 in my bin folder I have a config file for my app "myConfig.exe" as "myConfig.exe.config" <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="v3"...
6
by: NickP | last post by:
Hi there, I am implementing a simple "/U" command line argument for a .NET application that instructs the application to delete the following folders... ...
4
by: dev648237923 | last post by:
I develop my application on my dev server and then I deploy it to a customer's production server. I store the db connection string in web.config (is this best practice?). When I deploy I have to...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
5
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.