Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I tell VS2010 to include files in my manifest for publishing?

I have an application that is published through the ClickOne mecanism. The issue I'm having is that it is not publishing my NLog.config file, which is required for my application to run. I've looked through the Application Files screen, but I don't see NLog.config as an option to select. My NLog.config file has a built action of Content and is set to copy to the output directory. If it matters the NLog.config file is in another project that is referenced in the project I'm publishing.

I'm aware that I can use MAGE to essentially scan my publishdirectory and have it update my manifest, but what I'm looking for is a way to do it automatically.

What are my options?

Possible Solution

One solution could be to configure NLog through code rather than XML.

like image 265
Mike Avatar asked Dec 07 '25 02:12

Mike


1 Answers

I use this great tool too and I have a click-once program too: In the Solution explorer, click on your nlog.config. In the properties window, put the Build Action as content.

Be sure that you see "Applications files" of the project's properties window.

Voilà!

like image 185
Bestter Avatar answered Dec 08 '25 16:12

Bestter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!