By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,566 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,566 IT Pros & Developers. It's quick & easy.

What the MyApplication.application file?

P: n/a
This is regarding VS2005-generated files.

I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. However, it's sorta hard to dig out any article about the
MyApplication.application file.

(Think about what you'll get if you search for "visual studio 2005
application file". I even searched for "visual studio 2005 generated
files", but still could not get any).

(1) So, can any guru here please explain what it is?

(2) BTW, I don't think MyApplication.application and
MyApplication.exe.manifest should be published to the end user,
correct?

Another question: I have App.config for my console application. After
I compile, VS-2005 generates MyApplication.exe.config, which is the
same as App.config.

But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.config.

(3) So, how can I change the file name and not crash the application?

Thank you.
Jun 27 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Jun 25, 1:37*pm, Author <gnewsgr...@gmail.comwrote:
This is regarding VS2005-generated files.

I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. *However, it's sorta hard to dig out any article about the
MyApplication.application file.

(Think about what you'll get if you search for "visual studio 2005
application file". *I even searched for "visual studio 2005 generated
files", but still could not get any).

(1) *So, can any guru here please explain what it is?

(2) *BTW, I don't think MyApplication.application and
MyApplication.exe.manifest should be published to the end user,
correct?

Another question: I have App.config for my console application. *After
I compile, VS-2005 generates MyApplication.exe.config, which is the
same as App.config.

But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.config.

(3) So, how can I change the file name and not crash the application?

Thank you.
why you want an especific name?
That file is not intended to be used by th user.
Jun 27 '08 #2

P: n/a
On Jun 25, 3:45*pm, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.comwrote:
On Jun 25, 1:37*pm, Author <gnewsgr...@gmail.comwrote:


This is regarding VS2005-generated files.
I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. *However, it's sorta hard to dig out any article about the
MyApplication.application file.
(Think about what you'll get if you search for "visual studio 2005
application file". *I even searched for "visual studio 2005 generated
files", but still could not get any).
(1) *So, can any guru here please explain what it is?
(2) *BTW, I don't think MyApplication.application and
MyApplication.exe.manifest should be published to the end user,
correct?
Another question: I have App.config for my console application. *After
I compile, VS-2005 generates MyApplication.exe.config, which is the
same as App.config.
But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.config.
(3) So, how can I change the file name and not crash the application?
Thank you.

why you want an especific name?
That file is not intended to be used by th user.- Hide quoted text -

- Show quoted text -
Thank you. But, are you talking about MyApplication.exe.config file
or MyApplication.application file?
Jun 27 '08 #3

P: n/a
I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. However, it's sorta hard to dig out any article about the
MyApplication.application file.
I usually just turn off the vshost process. As for the
MyApplication.application file you're seeing, I don't have any idea what
you're talking about there. It's a bit too late for me to start researching
what it's for as well.
(2) BTW, I don't think MyApplication.application and
MyApplication.exe.manifest should be published to the end user,
correct?
I'm pretty sure the manifest is usually embedded within the application
resources somewhere. Check your project properties, I believe there's
something on the general settings for the project that deals with the
manifest file.
Another question: I have App.config for my console application. After
I compile, VS-2005 generates MyApplication.exe.config, which is the
same as App.config.

But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.config.

(3) So, how can I change the file name and not crash the application?
You won't be able to change the name of that file and have everything still
work properly. When the appdomain is loaded that your executable gets hosted
in - the .NET framework sets the name of the configuration file it's
supposed to look for automatically. Unless you're managing the appdomain
your application is running in yourself you won't have any choice in the
matter about the file name. This is completely normal for .NET applications,
we all use them. I wouldn't worry too much about it. Eventually you'll learn
to love the config files, sure beats the heck outta those old ini files we
all used to deal with.

However, if you really want the config stored in a different filename -
write the xml file yourself and don't use the app.config file. Though you
won't have access to anything in the
System.Configuration.ConfigurationManager class which a lot of the other
pieces of .NET use to access configuration information.


"Author" <gn********@gmail.comwrote in message
news:05**********************************@z66g2000 hsc.googlegroups.com...
This is regarding VS2005-generated files.

I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. However, it's sorta hard to dig out any article about the
MyApplication.application file.

(Think about what you'll get if you search for "visual studio 2005
application file". I even searched for "visual studio 2005 generated
files", but still could not get any).

(1) So, can any guru here please explain what it is?

(2) BTW, I don't think MyApplication.application and
MyApplication.exe.manifest should be published to the end user,
correct?

Another question: I have App.config for my console application. After
I compile, VS-2005 generates MyApplication.exe.config, which is the
same as App.config.

But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.config.

(3) So, how can I change the file name and not crash the application?

Thank you.
Jun 27 '08 #4

P: n/a

"Author" wrote:
This is regarding VS2005-generated files.

I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. However, it's sorta hard to dig out any article about the
MyApplication.application file.

(Think about what you'll get if you search for "visual studio 2005
application file". I even searched for "visual studio 2005 generated
files", but still could not get any).

(1) So, can any guru here please explain what it is?
The <Application>.exe.vshost file is a host file Visual Studio uses to
enhance performance when debugging, as well as adding debug support for
partially trusted domains. It can be disabled in the Debug tab of the
project properties, but doing so will lower performance.
(2) BTW, I don't think MyApplication.application and
MyApplication.exe.manifest should be published to the end user,
correct?
I'm not familiar with <Application>.Application files as I have never seen
it (how did you create it?), but the only way I found to attach a manifest
file to a VS2005 generated application was by directly attaching it to the
<Application>.exe file described in this article

http://support.microsoft.com/kb/944276

Not sure if you would consider this publishing the manifest to the end user.
Another question: I have App.config for my console application. After
I compile, VS-2005 generates MyApplication.exe.config, which is the
same as App.config.

But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.config.

(3) So, how can I change the file name and not crash the application?
Create a completely new file instead of adding an application config file to
your project. Make sure this file is deployed with your executable and in
your code use the overloaded configuration methods to access the custom
configuration file.

ConfigurationManager.OpenMappedExeConfiguration
Thank you.
You're welcome.

--
Happy Coding!
Morten Wennevik [C# MVP]

Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.