Visual Stuido, or VS


A lot of people suggest editing the pubxml file.  Don’t do it.

A lot of people suggest adding pre-build instructions.  Don’t do it.

I recommend simply including the file in your project and setting the “Copy to Output Directory” property to “Copy always“.

If you need a folder, but don’t want the contents, create a readme.txt file and mark it as “Copy always” to force the directory to copy.

pubxml technique:

<Target Name=”CustomCollectFiles”>


<_CustomFiles Include=”$(MSBuildProjectDirectory)\bin\MySpecialFile.txt” />

<FilesForPackagingFromProject Include=”%(_CustomFiles.Identity)”>

















custom build technique:

For information about how Acumen can help with your IT needs, call us today!