Wednesday, October 6, 2010

How to change compile dir in studio


Problem:

When you do a build of a web site in VS, it puts the generated dll's in the \WINDOWS\Microsoft.NET\Framework\[your .net version]\Temporary ASP.NET Files directory. When it's time to deploy you have to search for the generated dll's, annoying.

Wouldn't it be handy to have VS put the dll's where you want them?

Solution:

Create the following section in your web.config:
<compilation debug="true" tempDirectory="c:\yourdir">

Learning is doing ...
Robert

No comments: