7-zip compression in asp.net web site
<p>I am trying to use 7-zip compression to create a zip of a sample file as given in the example 
<a href="http://www.dotnetperls.com/7-zip" rel="nofollow">http://www.dotnetperls.com/7-zip</a>
As the URL says, "you must specify "Copy if newer" or "Copy always" to copy files such as executables to the output directory."</p>

<p>I found that when I use this code in a VS Project, I do get the option to specify "Copy if newer" when I see properties of 7za.exe in the properties window</p>

<p>But when I use in a VS Web site, I am unable to find this option. As a result, when I debug this program, it saying that its unable to find 7za.exe</p>

<pre><code>string sourceName = "pdfSample.pdf";
string targetName = "pdfSample.gz";

ProcessStartInfo p = new ProcessStartInfo();
p.FileName = "7za.exe";

p.Arguments = "a -tgzip \"" + targetName + "\" \"" + sourceName + "\" -mx=9";
p.WindowStyle = ProcessWindowStyle.Hidden;

try
{
    Process x = Process.Start(p);
    x.WaitForExit();
}
catch (Exception ex)
{
    Console.Write(ex.ToString());
} 
</code></pre>

<p>Any idea why there is no "Copy if newer" option in case of VS Web site?</p>

<p>Thanks!</p>
