Add Config File to the Setup Project

G

Guy Noir

Hi,

I have built a windows service in VS2005, C#.

I am curious about the proper way to add the WindowsService2.exe.config
to the setup project?

Right now I am adding a custom action to the Application folder for the
"Primary output from WindowsService2 (Active)"

However my WindowsService2.exe.config is not being installed to the
Application folder.

What is the correct procedure to ensure that the .config file gets
copied to the Application folder?

TIA!
-Aaron
 
S

Steve

Have you setup an app.config file in the service project? I've never
done anything with the .exe.config file, it just shows up automatically
when the service is installed based on the contents of app.config.

steve.
 
O

Otis Mukinfus

Hmmm app.config seems to be missing. Any idea how to re-create it?

Thanks

Right click on the project and click Add New Item, then choose
Application Configuration from the templates...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top