RE: erroneous missing assembly errors and app.config

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Mark,

>What I discovered, though, was that if you change that name
>at all or if you put the file anywhere but in the same directory
>as the .csproj file, the build process won't copy it to the build
>directory and won't name it <myapp>.exe.config. So why
>would the IDE let you change things that would defeat the
>build process?

This behavior is by design in VS2003, if you change its default
name<app.config>, then the generated file will be treated as a common
project file(just as the .txt file), the VS.NET only accepts the
<app.config> as its project's application configuration file, and will copy
it to the output directory.


Thanks

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages