Alex Rivera | Logout

Visual Studio and Virus Scan of Temp folder

Asked 2008-10-08T14:46:21.983
13

We are using Visual Studio 2008 as our primary development IDE. Our security team has set up McAfee to scan files in our \Local Settings\Temp folder. Unfortunately VS uses this directory during code builds which is slowing the developers down. We've reached an impasse with the security team on this, and wonder if anyone knows of a configuration setting in VS where we could change the folder to where those temporary files are written.

Thanks

Edit
Report

1 Answer

5

Use the tempDirectory property of the compilation section in your web.config:

<compilation debug="true" tempDirectory="C:\Foo">

Make sure you give the ASPNET account write access to C:\Foo (or whichever account your ASP.NET worker process is running under - in my case it's a domain account).

As per: http://msdn.microsoft.com/en-us/library/system.web.configuration.compilationsection.tempdirectory.aspx

answered 2009-08-10T14:40:41.193

Your Answer